Mercurial > hg > nginx-vendor-0-7
diff src/http/ngx_http_header_filter_module.c @ 386:1172e6d6f40f NGINX_0_7_5
nginx 0.7.5
*) Bugfixes in variables support in the "access_log" directive; the bug
had appeared in 0.7.4.
*) Bugfix: nginx could not be built --without-http_gzip_module; the bug
had appeared in 0.7.3.
Thanks to Kirill A. Korinskiy.
*) Bugfix: if sub_filter and SSI were used together, then responses
might were transferred incorrectly.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 01 Jul 2008 00:00:00 +0400 |
parents | 984bb0b1399b |
children | 6ebbca3d5ed7 |
line wrap: on
line diff
--- a/src/http/ngx_http_header_filter_module.c +++ b/src/http/ngx_http_header_filter_module.c @@ -347,9 +347,11 @@ ngx_http_header_filter(ngx_http_request_ len += sizeof("Connection: closed" CRLF) - 1; } +#if (NGX_HTTP_GZIP) if (r->gzip && clcf->gzip_vary) { len += sizeof("Vary: Accept-Encoding" CRLF) - 1; } +#endif part = &r->headers_out.headers.part; header = part->elts; @@ -520,10 +522,12 @@ ngx_http_header_filter(ngx_http_request_ sizeof("Connection: close" CRLF) - 1); } +#if (NGX_HTTP_GZIP) if (r->gzip && clcf->gzip_vary) { b->last = ngx_cpymem(b->last, "Vary: Accept-Encoding" CRLF, sizeof("Vary: Accept-Encoding" CRLF) - 1); } +#endif part = &r->headers_out.headers.part; header = part->elts;