comparison src/http/ngx_http_core_module.c @ 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 1df827cf70c0
children 1d9353fbc077
comparison
equal deleted inserted replaced
3977:2527cdb8d31f 3978:6b608bf9f3ae
2023 2023
2024 if (r != r->main 2024 if (r != r->main
2025 || r->headers_in.accept_encoding == NULL 2025 || r->headers_in.accept_encoding == NULL
2026 || ngx_strcasestrn(r->headers_in.accept_encoding->value.data, 2026 || ngx_strcasestrn(r->headers_in.accept_encoding->value.data,
2027 "gzip", 4 - 1) 2027 "gzip", 4 - 1)
2028 == NULL 2028 == NULL)
2029
2030 /*
2031 * if the URL (without the "http://" prefix) is longer than 253 bytes,
2032 * then MSIE 4.x can not handle the compressed stream - it waits
2033 * too long, hangs up or crashes
2034 */
2035
2036 || (r->headers_in.msie4 && r->unparsed_uri.len > 200))
2037 { 2029 {
2038 return NGX_DECLINED; 2030 return NGX_DECLINED;
2039 } 2031 }
2040 2032
2041 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 2033 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);