diff options
author | Igor Sysoev <igor@sysoev.ru> | 2011-08-01 11:21:46 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2011-08-01 11:21:46 +0000 |
commit | bd7dfe44c57743fe28ef00af138a750088f5dff0 (patch) | |
tree | 5010d72986632e8134ce12cd5a22a63a0ab1663e /src | |
parent | 2f3668b59b0a4235713488c4a79ea61bcf4d4e83 (diff) | |
download | nginx-bd7dfe44c57743fe28ef00af138a750088f5dff0.tar.gz nginx-bd7dfe44c57743fe28ef00af138a750088f5dff0.zip |
fix r3981 for case "Accept-Encoding: gzip"
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_core_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 544fd747e..e579fb5dc 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -2031,7 +2031,7 @@ ngx_http_gzip_ok(ngx_http_request_t *r) return NGX_DECLINED; } - if (ae->value.len < 5) { + if (ae->value.len < sizeof("gzip") - 1) { return NGX_DECLINED; } |