fix r3981 for case "Accept-Encoding: gzip"

This commit is contained in:
Igor Sysoev 2011-08-01 11:21:46 +00:00
parent 2f3668b59b
commit bd7dfe44c5

View File

@ -2031,7 +2031,7 @@ ngx_http_gzip_ok(ngx_http_request_t *r)
return NGX_DECLINED;
}
if (ae->value.len < 5) {
if (ae->value.len < sizeof("gzip") - 1) {
return NGX_DECLINED;
}