changeset 3986:6c4d2d163611

fix r3981 again for case "Accept-Encoding: gzip"
author Igor Sysoev <igor@sysoev.ru>
date Mon, 01 Aug 2011 14:38:09 +0000
parents 07d1aa82899b
children f31aea5b0665
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
@@ -2209,7 +2209,7 @@ ngx_http_gzip_accept_encoding(ngx_str_t 
             return NGX_DECLINED;
         }
 
-        if (p > start && (*(p - 1) == ',' || *(p - 1) == ' ')) {
+        if (p == start || (*(p - 1) == ',' || *(p - 1) == ' ')) {
             break;
         }