mirror of
https://github.com/nginx/nginx.git
synced 2024-11-27 23:49:00 +08:00
fix r3981 for case "Accept-Encoding: gzip"
This commit is contained in:
parent
2f3668b59b
commit
bd7dfe44c5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user