comparison 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
comparison
equal deleted inserted replaced
2876:658725e3eef4 2877:3cd2790f4a9b
203 h->key.data = (u_char *) "Content-Encoding"; 203 h->key.data = (u_char *) "Content-Encoding";
204 h->value.len = sizeof("gzip") - 1; 204 h->value.len = sizeof("gzip") - 1;
205 h->value.data = (u_char *) "gzip"; 205 h->value.data = (u_char *) "gzip";
206 206
207 r->headers_out.content_encoding = h; 207 r->headers_out.content_encoding = h;
208 r->ignore_content_encoding = 1;
208 209
209 /* we need to allocate all before the header would be sent */ 210 /* we need to allocate all before the header would be sent */
210 211
211 b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t)); 212 b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));
212 if (b == NULL) { 213 if (b == NULL) {