[nginx] Upstream: removed X-Powered-By from the list of special headers.

Ruslan Ermilov ru at nginx.com
Tue Jan 30 19:25:28 UTC 2018


details:   http://hg.nginx.org/nginx/rev/0b72d545f098
branches:  
changeset: 7194:0b72d545f098
user:      Ruslan Ermilov <ru at nginx.com>
date:      Tue Jan 30 22:23:58 2018 +0300
description:
Upstream: removed X-Powered-By from the list of special headers.

After 1e720b0be7ec, it's neither specially processed nor copied
when redirecting with X-Accel-Redirect.

diffstat:

 src/http/ngx_http_upstream.c |  4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diffs (14 lines):

diff -r 9d14931cec8c -r 0b72d545f098 src/http/ngx_http_upstream.c
--- a/src/http/ngx_http_upstream.c	Tue Jan 30 17:46:31 2018 +0300
+++ b/src/http/ngx_http_upstream.c	Tue Jan 30 22:23:58 2018 +0300
@@ -284,10 +284,6 @@ static ngx_http_upstream_header_t  ngx_h
                  ngx_http_upstream_process_vary, 0,
                  ngx_http_upstream_copy_header_line, 0, 0 },
 
-    { ngx_string("X-Powered-By"),
-                 ngx_http_upstream_ignore_header_line, 0,
-                 ngx_http_upstream_copy_header_line, 0, 0 },
-
     { ngx_string("X-Accel-Expires"),
                  ngx_http_upstream_process_accel_expires, 0,
                  ngx_http_upstream_copy_header_line, 0, 0 },


More information about the nginx-devel mailing list