# HG changeset patch # User Igor Sysoev # Date 1312209489 0 # Node ID 6c4d2d16361199b06425a564c947daadfa54b415 # Parent 07d1aa82899b702e1d583c12a22d3769e58c2a28 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 --- 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; }