mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
fix gzip quantity: "q=0." and "q=1." are valid values according to RFC
This commit is contained in:
parent
48d17bca94
commit
de236d3a2c
@ -2309,7 +2309,7 @@ ngx_http_gzip_quantity(u_char *p, u_char *last)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (q > 100 || n == 0 || n > 3) {
|
if (q > 100 || n > 3) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user