Mercurial > hg > nginx-vendor-1-0
diff src/http/modules/ngx_http_gzip_filter_module.c @ 556:25255878df91 NGINX_0_8_30
nginx 0.8.30
*) Change: now the default buffer size of the
"large_client_header_buffers" directive is 8K.
Thanks to Andrew Cholakian.
*) Feature: the conf/fastcgi.conf for simple FastCGI configurations.
*) Bugfix: nginx/Windows tried to rename a temporary file twice if the
file should replace an already existent file.
*) Bugfix: of "double free or corruption" error issued if host could
not be resolved; the bug had appeared in 0.8.22.
Thanks to Konstantin Svist.
*) Bugfix: in libatomic usage on some platforms.
Thanks to W-Mark Kubacki.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 15 Dec 2009 00:00:00 +0300 |
parents | 5c576ea5dbd9 |
children | 8246d8a2c2be |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_gzip_filter_module.c +++ b/src/http/modules/ngx_http_gzip_filter_module.c @@ -243,7 +243,6 @@ ngx_http_gzip_header_filter(ngx_http_req conf = ngx_http_get_module_loc_conf(r, ngx_http_gzip_filter_module); if (!conf->enable - || r->header_only || (r->headers_out.status != NGX_HTTP_OK && r->headers_out.status != NGX_HTTP_FORBIDDEN && r->headers_out.status != NGX_HTTP_NOT_FOUND) @@ -251,7 +250,8 @@ ngx_http_gzip_header_filter(ngx_http_req && r->headers_out.content_encoding->value.len) || (r->headers_out.content_length_n != -1 && r->headers_out.content_length_n < conf->min_length) - || ngx_http_test_content_type(r, &conf->types) == NULL) + || ngx_http_test_content_type(r, &conf->types) == NULL + || r->header_only) { return ngx_http_next_header_filter(r); }