From 93c483e0c5b17f04e37a80c2fa2e22e24a0c2492 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 22 May 2009 11:05:26 +0000 Subject: add charset for ngx_http_gzip_static_module responses --- src/http/modules/ngx_http_gzip_static_module.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/http/modules/ngx_http_gzip_static_module.c') diff --git a/src/http/modules/ngx_http_gzip_static_module.c b/src/http/modules/ngx_http_gzip_static_module.c index a1848628a..22e806ac3 100644 --- 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_request_t *r) 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 */ -- cgit