changeset 3994:87628d211f9a

fix gzip quantity: "q=0." and "q=1." are valid values according to RFC
author Igor Sysoev <igor@sysoev.ru>
date Fri, 05 Aug 2011 08:51:29 +0000
parents f77ed914eb1d
children 3ce6b8cedcb9
files src/http/ngx_http_core_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
         return 0;
     }
 
-    if (q > 100 || n == 0 || n > 3) {
+    if (q > 100 || n > 3) {
         return 0;
     }