mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
disable charset if there is "Content-Encoding" header
This commit is contained in:
parent
7f6b2ffc60
commit
77c287f35d
@ -204,6 +204,12 @@ ngx_http_charset_header_filter(ngx_http_request_t *r)
|
||||
|
||||
if (r == r->main) {
|
||||
|
||||
if (r->headers_out.content_encoding
|
||||
&& r->headers_out.content_encoding->value.len)
|
||||
{
|
||||
return ngx_http_next_header_filter(r);
|
||||
}
|
||||
|
||||
if (r->headers_out.content_type.len == 0) {
|
||||
return ngx_http_next_header_filter(r);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user