Mercurial > hg > nginx
changeset 3978:6b608bf9f3ae
Accept-Encoding refactoring: remove ancient MSIE 4.x test for gzip
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 30 Jul 2011 06:20:06 +0000 |
parents | 2527cdb8d31f |
children | 1d9353fbc077 |
files | src/http/ngx_http_core_module.c src/http/ngx_http_request.c src/http/ngx_http_request.h |
diffstat | 3 files changed, 1 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c Sat Jul 30 06:11:46 2011 +0000 +++ b/src/http/ngx_http_core_module.c Sat Jul 30 06:20:06 2011 +0000 @@ -2025,15 +2025,7 @@ || 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; }
--- a/src/http/ngx_http_request.c Sat Jul 30 06:11:46 2011 +0000 +++ b/src/http/ngx_http_request.c Sat Jul 30 06:20:06 2011 +0000 @@ -1439,8 +1439,6 @@ switch (msie[5]) { case '4': - r->headers_in.msie4 = 1; - /* fall through */ case '5': r->headers_in.msie6 = 1; break; @@ -1463,7 +1461,6 @@ if (ngx_strstrn(user_agent, "Opera", 5 - 1)) { r->headers_in.opera = 1; r->headers_in.msie = 0; - r->headers_in.msie4 = 0; r->headers_in.msie6 = 0; }