mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 14:56:15 +08:00
Handling of Content-Encoding set from perl.
This fixes double gzipping in case of gzip filter being enabled while perl returns already gzipped response.
This commit is contained in:
parent
0f5f4cb180
commit
012e6b6378
@ -474,6 +474,13 @@ header_out(r, key, value)
|
|||||||
r->headers_out.content_length = header;
|
r->headers_out.content_length = header;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (header->key.len == sizeof("Content-Encoding") - 1
|
||||||
|
&& ngx_strncasecmp(header->key.data, "Content-Encoding",
|
||||||
|
sizeof("Content-Encoding") - 1) == 0)
|
||||||
|
{
|
||||||
|
r->headers_out.content_encoding = header;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
filename(r)
|
filename(r)
|
||||||
|
Loading…
Reference in New Issue
Block a user