diff src/http/modules/ngx_http_charset_filter_module.c @ 2877:3cd2790f4a9b

add charset for ngx_http_gzip_static_module responses
author Igor Sysoev <igor@sysoev.ru>
date Fri, 22 May 2009 11:05:26 +0000
parents a6d6d762c554
children 0bb8c54f4c45 042124063e3d
line wrap: on
line diff
--- a/src/http/modules/ngx_http_charset_filter_module.c
+++ b/src/http/modules/ngx_http_charset_filter_module.c
@@ -224,7 +224,8 @@ ngx_http_charset_header_filter(ngx_http_
 
     if (r == r->main) {
 
-        if (r->headers_out.content_encoding
+        if (!r->ignore_content_encoding
+            && r->headers_out.content_encoding
             && r->headers_out.content_encoding->value.len)
         {
             return ngx_http_next_header_filter(r);