fix r3981 again for case "Accept-Encoding: gzip"

This commit is contained in:
Igor Sysoev 2011-08-01 14:38:09 +00:00
parent 21fd22d089
commit 72a96bfdcb

View 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;
}