aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2011-07-30 06:20:06 +0000
committerIgor Sysoev <igor@sysoev.ru>2011-07-30 06:20:06 +0000
commit6652cc596221b455ebe50cf77d5cc3a4116d5fa7 (patch)
treee2a873109464f5e8081aee0ec0da66c026950ba8 /src/http/ngx_http_core_module.c
parentc9468026e769cc38375030cdd33d540bdc8633d5 (diff)
downloadnginx-6652cc596221b455ebe50cf77d5cc3a4116d5fa7.tar.gz
nginx-6652cc596221b455ebe50cf77d5cc3a4116d5fa7.zip
Accept-Encoding refactoring: remove ancient MSIE 4.x test for gzip
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 597b64c51..02deb0ac0 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -2025,15 +2025,7 @@ ngx_http_gzip_ok(ngx_http_request_t *r)
|| r->headers_in.accept_encoding == NULL
|| ngx_strcasestrn(r->headers_in.accept_encoding->value.data,
"gzip", 4 - 1)
- == NULL
-
- /*
- * if the URL (without the "http://" prefix) is longer than 253 bytes,
- * then MSIE 4.x can not handle the compressed stream - it waits
- * too long, hangs up or crashes
- */
-
- || (r->headers_in.msie4 && r->unparsed_uri.len > 200))
+ == NULL)
{
return NGX_DECLINED;
}