From: Igor Sysoev Date: Mon, 1 Aug 2011 14:38:09 +0000 (+0000) Subject: fix r3981 again for case "Accept-Encoding: gzip" X-Git-Tag: release-1.1.0~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=72a96bfdcb3af2436b9123d8363782f7ad047459;p=nginx.git fix r3981 again for case "Accept-Encoding: gzip" --- diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index d2b90f16f..f7ebacb40 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -2209,7 +2209,7 @@ ngx_http_gzip_accept_encoding(ngx_str_t *ae) return NGX_DECLINED; } - if (p > start && (*(p - 1) == ',' || *(p - 1) == ' ')) { + if (p == start || (*(p - 1) == ',' || *(p - 1) == ' ')) { break; }