fix gzip quantity: "q=0." and "q=1." are valid values according to RFC

This commit is contained in:
Igor Sysoev 2011-08-05 08:51:29 +00:00
parent 48d17bca94
commit de236d3a2c

View File

@ -2309,7 +2309,7 @@ ngx_http_gzip_quantity(u_char *p, u_char *last)
return 0;
}
if (q > 100 || n == 0 || n > 3) {
if (q > 100 || n > 3) {
return 0;
}