Accept-Encoding refactoring: remove ancient MSIE 4.x test for gzip
Igor Sysoev
10 years ago
2024 | 2024 |
|| r->headers_in.accept_encoding == NULL
|
2025 | 2025 |
|| ngx_strcasestrn(r->headers_in.accept_encoding->value.data,
|
2026 | 2026 |
"gzip", 4 - 1)
|
2027 | |
== NULL
|
2028 | |
|
2029 | |
/*
|
2030 | |
* if the URL (without the "http://" prefix) is longer than 253 bytes,
|
2031 | |
* then MSIE 4.x can not handle the compressed stream - it waits
|
2032 | |
* too long, hangs up or crashes
|
2033 | |
*/
|
2034 | |
|
2035 | |
|| (r->headers_in.msie4 && r->unparsed_uri.len > 200))
|
|
2027 |
== NULL)
|
2036 | 2028 |
{
|
2037 | 2029 |
return NGX_DECLINED;
|
2038 | 2030 |
}
|