From de236d3a2c5320d32f861a0efdb6fb5e322be7b9 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 5 Aug 2011 08:51:29 +0000 Subject: [PATCH] fix gzip quantity: "q=0." and "q=1." are valid values according to RFC --- src/http/ngx_http_core_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }