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
d94c192db8
commit
2780213915
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue