diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2014-05-19 22:45:34 +0400 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2014-05-19 22:45:34 +0400 |
commit | 4884cd611e805ada82ad2735d4598cd41922ca0a (patch) | |
tree | 9978596d4f69b24e33f225afb4819ae6dc39add9 /src/http/modules/ngx_http_gzip_static_module.c | |
parent | ffba0eeefbdbc36d8bb826523355fd31d8929a27 (diff) | |
download | nginx-4884cd611e805ada82ad2735d4598cd41922ca0a.tar.gz nginx-4884cd611e805ada82ad2735d4598cd41922ca0a.zip |
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.
Diffstat (limited to 'src/http/modules/ngx_http_gzip_static_module.c')
-rw-r--r-- | src/http/modules/ngx_http_gzip_static_module.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_gzip_static_module.c b/src/http/modules/ngx_http_gzip_static_module.c index 1746e5504..4d5409077 100644 --- 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_request_t *r) 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)); |