mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
nginx could not be build without gzip, introduced in r2052
This commit is contained in:
@@ -347,9 +347,11 @@ ngx_http_header_filter(ngx_http_request_t *r)
|
|||||||
len += sizeof("Connection: closed" CRLF) - 1;
|
len += sizeof("Connection: closed" CRLF) - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (NGX_HTTP_GZIP)
|
||||||
if (r->gzip && clcf->gzip_vary) {
|
if (r->gzip && clcf->gzip_vary) {
|
||||||
len += sizeof("Vary: Accept-Encoding" CRLF) - 1;
|
len += sizeof("Vary: Accept-Encoding" CRLF) - 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
part = &r->headers_out.headers.part;
|
part = &r->headers_out.headers.part;
|
||||||
header = part->elts;
|
header = part->elts;
|
||||||
@@ -520,10 +522,12 @@ ngx_http_header_filter(ngx_http_request_t *r)
|
|||||||
sizeof("Connection: close" CRLF) - 1);
|
sizeof("Connection: close" CRLF) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (NGX_HTTP_GZIP)
|
||||||
if (r->gzip && clcf->gzip_vary) {
|
if (r->gzip && clcf->gzip_vary) {
|
||||||
b->last = ngx_cpymem(b->last, "Vary: Accept-Encoding" CRLF,
|
b->last = ngx_cpymem(b->last, "Vary: Accept-Encoding" CRLF,
|
||||||
sizeof("Vary: Accept-Encoding" CRLF) - 1);
|
sizeof("Vary: Accept-Encoding" CRLF) - 1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
part = &r->headers_out.headers.part;
|
part = &r->headers_out.headers.part;
|
||||||
header = part->elts;
|
header = part->elts;
|
||||||
|
|||||||
Reference in New Issue
Block a user