Merging r4189, r4197:
Perl related fixes:
*) Handling of Content-Encoding set from perl.
This fixes double gzipping in case of gzip filter being enabled while perl
returns already gzipped response.
*) Fixed macro name.
Igor Sysoev
10 years ago
473 | 473 | r->headers_out.content_length = header; |
474 | 474 | } |
475 | 475 | |
476 | if (header->key.len == sizeof("Content-Encoding") - 1 | |
477 | && ngx_strncasecmp(header->key.data, "Content-Encoding", | |
478 | sizeof("Content-Encoding") - 1) == 0) | |
479 | { | |
480 | r->headers_out.content_encoding = header; | |
481 | } | |
482 | ||
476 | 483 | |
477 | 484 | void |
478 | 485 | filename(r) |
835 | 842 | var.len = len; |
836 | 843 | var.data = lowcase; |
837 | 844 | |
838 | #if (NGX_LOG_DEBUG) | |
845 | #if (NGX_DEBUG) | |
839 | 846 | |
840 | 847 | if (value) { |
841 | 848 | ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |