aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2011-08-05 08:51:29 +0000
committerIgor Sysoev <igor@sysoev.ru>2011-08-05 08:51:29 +0000
commitde236d3a2c5320d32f861a0efdb6fb5e322be7b9 (patch)
tree1ebd51350f31d23322045ef8bce229265d3ad78c /src
parent48d17bca947540c31c077051ab6d7073fd25c986 (diff)
downloadnginx-de236d3a2c5320d32f861a0efdb6fb5e322be7b9.tar.gz
nginx-de236d3a2c5320d32f861a0efdb6fb5e322be7b9.zip
fix gzip quantity: "q=0." and "q=1." are valid values according to RFC
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_core_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 00692454c..bbb9311cf 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -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;
}