disable charset if there is "Content-Encoding" header
This commit is contained in:
parent
0ebc285aa0
commit
f87fb20c0b
1 changed files with 6 additions and 0 deletions
|
@ -204,6 +204,12 @@ ngx_http_charset_header_filter(ngx_http_request_t *r)
|
||||||
|
|
||||||
if (r == r->main) {
|
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) {
|
if (r->headers_out.content_type.len == 0) {
|
||||||
return ngx_http_next_header_filter(r);
|
return ngx_http_next_header_filter(r);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue