diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2022-05-30 21:25:45 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2022-05-30 21:25:45 +0300 |
commit | e59c2096ae9d561997ad2d64d61094503e6be4c3 (patch) | |
tree | e02d6b996a9a4a1876d1b569809fdffe7b033263 /src/http/modules/ngx_http_memcached_module.c | |
parent | bbf8ed48c455dbb95accf886d25be95d15abde1f (diff) | |
download | nginx-e59c2096ae9d561997ad2d64d61094503e6be4c3.tar.gz nginx-e59c2096ae9d561997ad2d64d61094503e6be4c3.zip |
All known output headers can be linked lists now.
The h->next pointer properly provided as NULL in all cases where known
output headers are added.
Note that there are 3rd party modules which might not do this, and it
might be risky to rely on this for arbitrary headers.
Diffstat (limited to 'src/http/modules/ngx_http_memcached_module.c')
-rw-r--r-- | src/http/modules/ngx_http_memcached_module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_memcached_module.c b/src/http/modules/ngx_http_memcached_module.c index c82df6e33..11bbd9165 100644 --- a/src/http/modules/ngx_http_memcached_module.c +++ b/src/http/modules/ngx_http_memcached_module.c @@ -401,6 +401,7 @@ found: } h->hash = 1; + h->next = NULL; ngx_str_set(&h->key, "Content-Encoding"); ngx_str_set(&h->value, "gzip"); r->headers_out.content_encoding = h; |