Mercurial > hg > nginx-quic
diff src/http/modules/ngx_http_gzip_static_module.c @ 5698:fcb0420f90de
Charset filter: fixed charset setting on encoded replies.
If response is gzipped we can't recode response, but in case it's not
needed we still can add charset to Content-Type.
The r->ignore_content_encoding is dropped accordingly, charset with gzip_static
now properly works without any special flags.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 19 May 2014 22:45:34 +0400 |
parents | ceecde39853f |
children | a72886067bbb |
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 @@ -246,8 +246,6 @@ ngx_http_gzip_static_handler(ngx_http_re ngx_str_set(&h->value, "gzip"); r->headers_out.content_encoding = h; - r->ignore_content_encoding = 1; - /* we need to allocate all before the header would be sent */ b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));