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

index d2b90f16f8e47b528e0dd67c413ebc93bf60a467..f7ebacb40282bf51897678da6cbd0e87c72109ec 100644 (file)
@@ -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;
         }