diff src/http/modules/ngx_http_gzip_static_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 09cab3f8d92e
children c7d57b539248
line wrap: on
line diff
--- a/src/http/modules/ngx_http_gzip_static_module.c
+++ b/src/http/modules/ngx_http_gzip_static_module.c
@@ -205,6 +205,7 @@ ngx_http_gzip_static_handler(ngx_http_re
     h->value.data = (u_char *) "gzip";
 
     r->headers_out.content_encoding = h;
+    r->ignore_content_encoding = 1;
 
     /* we need to allocate all before the header would be sent */