mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +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;
|
||||
}
|
||||
|
||||
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
|
||||
filename(r)
|
||||
|
Loading…
Reference in New Issue
Block a user