From bd7dfe44c57743fe28ef00af138a750088f5dff0 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 1 Aug 2011 11:21:46 +0000 Subject: fix r3981 for case "Accept-Encoding: gzip" --- src/http/ngx_http_core_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit