diff options
author | Ruslan Ermilov <ru@nginx.com> | 2018-02-15 17:51:26 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2018-02-15 17:51:26 +0300 |
commit | 8a84dd4f322e9bdf7a07c3b51ed76b671d07e161 (patch) | |
tree | 67f96a9911a768a0d9473cee0ee579bd43dda8ec /src | |
parent | 9d00f9e44989e2ac8e755bcabe9392df54c4f54c (diff) | |
download | nginx-8a84dd4f322e9bdf7a07c3b51ed76b671d07e161.tar.gz nginx-8a84dd4f322e9bdf7a07c3b51ed76b671d07e161.zip |
Expose more headers with NGX_HTTP_HEADERS.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_request.c | 2 | ||||
-rw-r--r-- | src/http/ngx_http_request.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index a2663f015..89cfe77ad 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -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 --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h index ead323866..5d44c06ef 100644 --- a/src/http/ngx_http_request.h +++ b/src/http/ngx_http_request.h @@ -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 |