diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-11-12 13:44:16 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-11-12 13:44:16 +0000 |
commit | 0338645ecf8bad403869e41727dcf9b9ef72515e (patch) | |
tree | 912ea3d4b4a92359e96a0b9f9b69d8911041da50 /src | |
parent | 6c49a5afcfa76ea5ed1ca5801bf955b102b2b597 (diff) | |
download | nginx-0338645ecf8bad403869e41727dcf9b9ef72515e.tar.gz nginx-0338645ecf8bad403869e41727dcf9b9ef72515e.zip |
test frequent r->header_only before three response status
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_gzip_filter_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_gzip_filter_module.c b/src/http/modules/ngx_http_gzip_filter_module.c index 4c0c0d201..337700c0d 100644 --- a/src/http/modules/ngx_http_gzip_filter_module.c +++ b/src/http/modules/ngx_http_gzip_filter_module.c @@ -243,10 +243,10 @@ ngx_http_gzip_header_filter(ngx_http_request_t *r) 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) - || r->header_only || (r->headers_out.content_encoding && r->headers_out.content_encoding->value.len) || (r->headers_out.content_length_n != -1 |