[nginx] Proxy: the "TE" header now stripped by default (ticket #...

Maxim Dounin mdounin at mdounin.ru
Tue Dec 9 15:21:03 UTC 2014


details:   http://hg.nginx.org/nginx/rev/2d3908516101
branches:  
changeset: 5936:2d3908516101
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Tue Dec 09 18:20:19 2014 +0300
description:
Proxy: the "TE" header now stripped by default (ticket #537).

diffstat:

 src/http/modules/ngx_http_proxy_module.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c
--- a/src/http/modules/ngx_http_proxy_module.c
+++ b/src/http/modules/ngx_http_proxy_module.c
@@ -715,6 +715,7 @@ static ngx_keyval_t  ngx_http_proxy_head
     { ngx_string("Host"), ngx_string("$proxy_host") },
     { ngx_string("Connection"), ngx_string("close") },
     { ngx_string("Content-Length"), ngx_string("$proxy_internal_body_length") },
+    { ngx_string("TE"), ngx_string("") },
     { ngx_string("Transfer-Encoding"), ngx_string("") },
     { ngx_string("Keep-Alive"), ngx_string("") },
     { ngx_string("Expect"), ngx_string("") },
@@ -742,6 +743,7 @@ static ngx_keyval_t  ngx_http_proxy_cach
     { ngx_string("Host"), ngx_string("$proxy_host") },
     { ngx_string("Connection"), ngx_string("close") },
     { ngx_string("Content-Length"), ngx_string("$proxy_internal_body_length") },
+    { ngx_string("TE"), ngx_string("") },
     { ngx_string("Transfer-Encoding"), ngx_string("") },
     { ngx_string("Keep-Alive"), ngx_string("") },
     { ngx_string("Expect"), ngx_string("") },



More information about the nginx-devel mailing list