]> git.kaiwu.me - nginx.git/commitdiff
fix r3981 for case "Accept-Encoding: gzip"
authorIgor Sysoev <igor@sysoev.ru>
Mon, 1 Aug 2011 11:21:46 +0000 (11:21 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 1 Aug 2011 11:21:46 +0000 (11:21 +0000)
src/http/ngx_http_core_module.c

index 544fd747e6f157b197a2a4aa371c763a5ef5fde1..e579fb5dc8d750724120f041f3958effbac481a8 100644 (file)
@@ -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;
     }