Mercurial > hg > nginx-quic
diff src/http/modules/ngx_http_gzip_static_module.c @ 2051:115e6f029fcc
"gzip_vary on" always sends "Vary: Accept-Encoding" header
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 20 Jun 2008 14:41:03 +0000 |
parents | 2547ef00c722 |
children | 67a29af877ed |
line wrap: on
line diff
--- 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_re 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));