]> git.kaiwu.me - nginx.git/commit
Charset filter: fixed charset setting on encoded replies.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 19 May 2014 18:45:34 +0000 (22:45 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 19 May 2014 18:45:34 +0000 (22:45 +0400)
commit4884cd611e805ada82ad2735d4598cd41922ca0a
tree9978596d4f69b24e33f225afb4819ae6dc39add9
parentffba0eeefbdbc36d8bb826523355fd31d8929a27
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.
src/http/modules/ngx_http_charset_filter_module.c
src/http/modules/ngx_http_gzip_static_module.c
src/http/ngx_http_request.h