comparison src/http/ngx_http_core_module.c @ 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 3e51832c8215
children 3165250f6c16
comparison
equal deleted inserted replaced
3985:07d1aa82899b 3986:6c4d2d163611
2207 p = ngx_strcasestrn(start, "gzip", 4 - 1); 2207 p = ngx_strcasestrn(start, "gzip", 4 - 1);
2208 if (p == NULL) { 2208 if (p == NULL) {
2209 return NGX_DECLINED; 2209 return NGX_DECLINED;
2210 } 2210 }
2211 2211
2212 if (p > start && (*(p - 1) == ',' || *(p - 1) == ' ')) { 2212 if (p == start || (*(p - 1) == ',' || *(p - 1) == ' ')) {
2213 break; 2213 break;
2214 } 2214 }
2215 2215
2216 start = p + 4; 2216 start = p + 4;
2217 } 2217 }