[nginx] Expose more headers with NGX_HTTP_HEADERS.

Ruslan Ermilov ru at nginx.com
Thu Feb 15 14:55:00 UTC 2018


details:   http://hg.nginx.org/nginx/rev/33edea74bd58
branches:  
changeset: 7206:33edea74bd58
user:      Ruslan Ermilov <ru at nginx.com>
date:      Thu Feb 15 17:51:26 2018 +0300
description:
Expose more headers with NGX_HTTP_HEADERS.

diffstat:

 src/http/ngx_http_request.c |  2 +-
 src/http/ngx_http_request.h |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r fc4d82c13c04 -r 33edea74bd58 src/http/ngx_http_request.c
--- a/src/http/ngx_http_request.c	Thu Feb 15 16:08:05 2018 +0300
+++ b/src/http/ngx_http_request.c	Thu Feb 15 17:51:26 2018 +0300
@@ -140,7 +140,7 @@ ngx_http_header_t  ngx_http_headers_in[]
                  offsetof(ngx_http_headers_in_t, upgrade),
                  ngx_http_process_header_line },
 
-#if (NGX_HTTP_GZIP)
+#if (NGX_HTTP_GZIP || NGX_HTTP_HEADERS)
     { ngx_string("Accept-Encoding"),
                  offsetof(ngx_http_headers_in_t, accept_encoding),
                  ngx_http_process_header_line },
diff -r fc4d82c13c04 -r 33edea74bd58 src/http/ngx_http_request.h
--- a/src/http/ngx_http_request.h	Thu Feb 15 16:08:05 2018 +0300
+++ b/src/http/ngx_http_request.h	Thu Feb 15 17:51:26 2018 +0300
@@ -200,7 +200,7 @@ typedef struct {
     ngx_table_elt_t                  *expect;
     ngx_table_elt_t                  *upgrade;
 
-#if (NGX_HTTP_GZIP)
+#if (NGX_HTTP_GZIP || NGX_HTTP_HEADERS)
     ngx_table_elt_t                  *accept_encoding;
     ngx_table_elt_t                  *via;
 #endif


More information about the nginx-devel mailing list