From: Igor Sysoev Date: Wed, 11 Nov 2009 14:32:49 +0000 (+0000) Subject: remove "Content-Encoding: gzip" in 304 response X-Git-Tag: release-0.8.24~1 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=20c9f8be85b06a052166db51b3d47a6cace8d41c;p=nginx.git remove "Content-Encoding: gzip" in 304 response sent by ngx_http_gzip_static_module --- diff --git a/src/http/modules/ngx_http_not_modified_filter_module.c b/src/http/modules/ngx_http_not_modified_filter_module.c index 5312b3a22..705815740 100644 --- a/src/http/modules/ngx_http_not_modified_filter_module.c +++ b/src/http/modules/ngx_http_not_modified_filter_module.c @@ -88,6 +88,11 @@ ngx_http_not_modified_header_filter(ngx_http_request_t *r) 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); }