summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_request.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-02-01 15:54:02 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-02-01 15:54:02 +0000
commitafbfc8b4513a663d90cf0728633b8430fe691030 (patch)
treed649f3222e846e2afb731112651da8427fd7cfc7 /src/http/ngx_http_request.h
parentc419414db440c298006d814936de28964d654b38 (diff)
downloadnginx-afbfc8b4513a663d90cf0728633b8430fe691030.tar.gz
nginx-afbfc8b4513a663d90cf0728633b8430fe691030.tar.bz2
merge r3309, r3314, r3315, r3380:
gzip headers related fixes: *) remove "Content-Encoding: gzip" in 304 response sent by ngx_http_gzip_static_module *) refactor gzip_vary handling *) test r->header_only last, since it's not actually frequent here: 304 and HEAD responses are not set it before the filter
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_request.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
index 78dabddbd..974020ef8 100644
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -451,7 +451,12 @@ struct ngx_http_request_s {
#if (NGX_HTTP_CACHE)
unsigned cached:1;
#endif
- unsigned gzip:2;
+
+#if (NGX_HTTP_GZIP)
+ unsigned gzip_tested:1;
+ unsigned gzip_ok:1;
+ unsigned gzip_vary:1;
+#endif
unsigned proxy:1;
unsigned bypass_cache:1;