From 72a96bfdcb3af2436b9123d8363782f7ad047459 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 1 Aug 2011 14:38:09 +0000 Subject: [PATCH] fix r3981 again for case "Accept-Encoding: gzip" --- src/http/ngx_http_core_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }