diff src/http/ngx_http_core_module.c @ 3982:aab3889c41e9

fix r3981 for case "Accept-Encoding: gzip"
author Igor Sysoev <igor@sysoev.ru>
date Mon, 01 Aug 2011 11:21:46 +0000
parents 19de03b4217f
children 3e51832c8215
line wrap: on
line diff
--- 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;
     }