Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-07-01 10:31:16 +0400
committerIgor Sysoev <igor@sysoev.ru>2008-07-01 10:31:16 +0400
commitba6fc40c4c19605f5d989b9996014cc05f5d1db8 (patch)
tree193bed722d112885d3cdb652ec9011fcdaf1eea7
parent06d214713966265fe76c52686719a55e13efb964 (diff)
nginx could not be build without gzip, introduced in r2052
-rw-r--r--src/http/ngx_http_header_filter_module.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_header_filter_module.c b/src/http/ngx_http_header_filter_module.c
index 777b526e7..7714873e0 100644
--- 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_t *r)
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_t *r)
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;