]> git.kaiwu.me - nginx.git/commitdiff
Expose more headers with NGX_HTTP_HEADERS.
authorRuslan Ermilov <ru@nginx.com>
Thu, 15 Feb 2018 14:51:26 +0000 (17:51 +0300)
committerRuslan Ermilov <ru@nginx.com>
Thu, 15 Feb 2018 14:51:26 +0000 (17:51 +0300)
src/http/ngx_http_request.c
src/http/ngx_http_request.h

index a2663f0156b0dd2c4b2022d6b0958899f43bdae0..89cfe77ad5add9a2f4ef429b2950002938aa7bd2 100644 (file)
@@ -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 },
index ead3238661579e12cff2dfb63ef589f52377158d..5d44c06ef17b9d72d2f62375f30234c767fc90e9 100644 (file)
@@ -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