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:
Maxim Dounin 2011-10-11 18:01:38 +00:00
parent d94c192db8
commit 2780213915

View file

@ -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)