Welcome! Log In Create A New Profile

Advanced

[nginx] Expose more headers with NGX_HTTP_HEADERS.

February 15, 2018 09:56AM
details: http://hg.nginx.org/nginx/rev/33edea74bd58
branches:
changeset: 7206:33edea74bd58
user: Ruslan Ermilov <ru@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
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Expose more headers with NGX_HTTP_HEADERS.

ru@nginx.com 690 February 15, 2018 09:56AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready