summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-11-11 14:32:49 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-11-11 14:32:49 +0000
commit20c9f8be85b06a052166db51b3d47a6cace8d41c (patch)
tree692c4d6a11fd405c515ab382c561bc011d438620
parent653edd491b03eb04939f2c465f294c4d1a7b13d1 (diff)
downloadnginx-20c9f8be85b06a052166db51b3d47a6cace8d41c.tar.gz
nginx-20c9f8be85b06a052166db51b3d47a6cace8d41c.tar.bz2
remove "Content-Encoding: gzip" in 304 response
sent by ngx_http_gzip_static_module
-rw-r--r--src/http/modules/ngx_http_not_modified_filter_module.c5
1 files changed, 5 insertions, 0 deletions
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);
}