1 --- ../ngx_http_redis-0.3.9/ngx_http_redis_module.c.orig	2022-07-10 22:10:19.031893000 -0400
2 +++ ../ngx_http_redis-0.3.9/ngx_http_redis_module.c	2022-07-10 22:09:41.271731000 -0400
3 @@ -562,7 +562,7 @@
4          /* if defined gzip_flag... */
5          if (rlcf->gzip_flag) {
6              /* hash init */
7 -            h = ngx_list_push(&r->upstream->headers_in.headers);
8 +            h = ngx_list_push(&r->headers_out.headers);
9              if (h == NULL) {
10                  return NGX_ERROR;
11              }
12 @@ -571,19 +571,11 @@
13               * add Content-Encoding header for future gunzipping
14               * with ngx_http_gunzip_filter module
15               */
16 -            h->hash = ngx_hash(ngx_hash(ngx_hash(ngx_hash(
17 -                                ngx_hash(ngx_hash(ngx_hash(
18 -                                ngx_hash(ngx_hash(ngx_hash(
19 -                                ngx_hash(ngx_hash(ngx_hash(
20 -                                ngx_hash(ngx_hash('c', 'o'), 'n'), 't'), 'e'),
21 -                                 'n'), 't'), '-'), 'e'), 'n'), 'c'), 'o'),
22 -                                 'd'), 'i'), 'n'), 'g');
23 +            h->hash = 1;
24 +            h->next = NULL;
25              ngx_str_set(&h->key, "Content-Encoding");
26              ngx_str_set(&h->value, "gzip");
27 -            h->lowcase_key = (u_char*) "content-encoding";
28 -#if (NGX_HTTP_GZIP)
29 -            u->headers_in.content_encoding = h;
30 -#endif
31 +            r->headers_out.content_encoding = h;
32          }
33 
34          /* try to find end of string */
35