Mercurial > hg > nginx
changeset 3314:d17c4c5c1c57
test frequent r->header_only before three response status
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 12 Nov 2009 13:44:16 +0000 |
parents | 118169a8ec92 |
children | 63fafb988446 |
files | src/http/modules/ngx_http_gzip_filter_module.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_gzip_filter_module.c Thu Nov 12 13:41:56 2009 +0000 +++ b/src/http/modules/ngx_http_gzip_filter_module.c Thu Nov 12 13:44:16 2009 +0000 @@ -243,10 +243,10 @@ 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