]> git.kaiwu.me - nginx.git/commit
Upstream: simplified Content-Encoding handling.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 30 May 2022 18:25:42 +0000 (21:25 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 30 May 2022 18:25:42 +0000 (21:25 +0300)
commit25093473051cae249963ace3156900dcc7ef5fae
tree2721e4007cad13eba254967439cfc324535713a0
parent6bf6ef394761c1ba1f06af1b515a5ad1efda99c6
Upstream: simplified Content-Encoding handling.

Since introduction of offset handling in ngx_http_upstream_copy_header_line()
in revision 573:58475592100c, the ngx_http_upstream_copy_content_encoding()
function is no longer needed, as its behaviour is exactly equivalent to
ngx_http_upstream_copy_header_line() with appropriate offset.  As such,
the ngx_http_upstream_copy_content_encoding() function was removed.

Further, the u->headers_in.content_encoding field is not used anywhere,
so it was removed as well.

Further, Content-Encoding handling no longer depends on NGX_HTTP_GZIP,
as it can be used even without any gzip handling compiled in (for example,
in the charset filter).
src/http/ngx_http_upstream.c
src/http/ngx_http_upstream.h