Mercurial > hg > nginx
changeset 3308:793ae4dd91e9
remove "Content-Encoding: gzip" in 304 response
sent by ngx_http_gzip_static_module
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 11 Nov 2009 14:32:49 +0000 |
parents | 34e99a97fbd6 |
children | 89b9173476de |
files | src/http/modules/ngx_http_not_modified_filter_module.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_not_modified_filter_module.c Wed Nov 11 14:29:20 2009 +0000 +++ b/src/http/modules/ngx_http_not_modified_filter_module.c Wed Nov 11 14:32:49 2009 +0000 @@ -88,6 +88,11 @@ ngx_http_clear_content_length(r); ngx_http_clear_accept_ranges(r); + if (r->headers_out.content_encoding) { + r->headers_out.content_encoding->hash = 0; + r->headers_out.content_encoding = NULL; + } + return ngx_http_next_header_filter(r); }