aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_gzip_static_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-06-20 14:41:03 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-06-20 14:41:03 +0000
commitc49ed61376a626e01e3cb36d541f412223111957 (patch)
tree6e008d1fec4451c79b1b10bef135901f0baf74b0 /src/http/modules/ngx_http_gzip_static_module.c
parent77c287f35de645503da297f6c5657fd1d63514ae (diff)
downloadnginx-c49ed61376a626e01e3cb36d541f412223111957.tar.gz
nginx-c49ed61376a626e01e3cb36d541f412223111957.zip
"gzip_vary on" always sends "Vary: Accept-Encoding" header
Diffstat (limited to 'src/http/modules/ngx_http_gzip_static_module.c')
-rw-r--r--src/http/modules/ngx_http_gzip_static_module.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/http/modules/ngx_http_gzip_static_module.c b/src/http/modules/ngx_http_gzip_static_module.c
index c37364910..e6d44ec7b 100644
--- a/src/http/modules/ngx_http_gzip_static_module.c
+++ b/src/http/modules/ngx_http_gzip_static_module.c
@@ -203,19 +203,6 @@ ngx_http_gzip_static_handler(ngx_http_request_t *r)
r->headers_out.content_encoding = h;
- if (clcf->gzip_vary) {
- h = ngx_list_push(&r->headers_out.headers);
- if (h == NULL) {
- return NGX_ERROR;
- }
-
- h->hash = 1;
- h->key.len = sizeof("Vary") - 1;
- h->key.data = (u_char *) "Vary";
- h->value.len = sizeof("Accept-Encoding") - 1;
- h->value.data = (u_char *) "Accept-Encoding";
- }
-
/* we need to allocate all before the header would be sent */
b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));