changeset 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 77604e9a1ed8
children e126d997cbc6
files src/http/ngx_http_core_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
     }