diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-11-12 13:41:56 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-11-12 13:41:56 +0000 |
commit | 6c49a5afcfa76ea5ed1ca5801bf955b102b2b597 (patch) | |
tree | 9732376c30ce7baa94fc2cacb3054648d7af3bba /src/http/modules/ngx_http_gzip_static_module.c | |
parent | 2c0b6f3e70a7a4c277fec04d13845f0895ff2a04 (diff) | |
download | nginx-6c49a5afcfa76ea5ed1ca5801bf955b102b2b597.tar.gz nginx-6c49a5afcfa76ea5ed1ca5801bf955b102b2b597.zip |
refactor gzip_vary handling
Diffstat (limited to 'src/http/modules/ngx_http_gzip_static_module.c')
-rw-r--r-- | src/http/modules/ngx_http_gzip_static_module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_gzip_static_module.c b/src/http/modules/ngx_http_gzip_static_module.c index cff23e02a..a928d16ae 100644 --- a/src/http/modules/ngx_http_gzip_static_module.c +++ b/src/http/modules/ngx_http_gzip_static_module.c @@ -145,7 +145,6 @@ ngx_http_gzip_static_handler(ngx_http_request_t *r) case NGX_ENOTDIR: case NGX_ENAMETOOLONG: - r->gzip = 0; return NGX_DECLINED; case NGX_EACCES: @@ -165,6 +164,8 @@ ngx_http_gzip_static_handler(ngx_http_request_t *r) return NGX_DECLINED; } + r->gzip_vary = 1; + if (rc != NGX_OK) { return NGX_DECLINED; } |