summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2022-05-30 21:25:42 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2022-05-30 21:25:42 +0300
commit25093473051cae249963ace3156900dcc7ef5fae (patch)
tree2721e4007cad13eba254967439cfc324535713a0 /src/http/ngx_http_upstream.h
parent6bf6ef394761c1ba1f06af1b515a5ad1efda99c6 (diff)
downloadnginx-25093473051cae249963ace3156900dcc7ef5fae.tar.gz
nginx-25093473051cae249963ace3156900dcc7ef5fae.tar.bz2
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).
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_upstream.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h
index 18a9c570b..c402d8334 100644
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -285,10 +285,6 @@ typedef struct {
ngx_table_elt_t *transfer_encoding;
ngx_table_elt_t *vary;
-#if (NGX_HTTP_GZIP)
- ngx_table_elt_t *content_encoding;
-#endif
-
ngx_table_elt_t *cache_control;
ngx_table_elt_t *set_cookie;