]> git.kaiwu.me - nginx.git/commitdiff
fix gzip quantity: "q=0." and "q=1." are valid values according to RFC
authorIgor Sysoev <igor@sysoev.ru>
Fri, 5 Aug 2011 08:51:29 +0000 (08:51 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 5 Aug 2011 08:51:29 +0000 (08:51 +0000)
src/http/ngx_http_core_module.c

index 00692454c34cb4af1c9d2e799ab464d3fa0d8997..bbb9311cf0fd097121ec76676c128f9195750ff4 100644 (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;
     }