summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_headers.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_headers.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/ngx_http_headers.c b/src/http/ngx_http_headers.c
index 1820ea768..83fcae5cb 100644
--- a/src/http/ngx_http_headers.c
+++ b/src/http/ngx_http_headers.c
@@ -29,6 +29,11 @@ ngx_http_header_t ngx_http_headers_in[] = {
{ ngx_string("Keep-Alive"), offsetof(ngx_http_headers_in_t, keep_alive) },
+#if (NGX_HTTP_PROXY)
+ { ngx_string("X-Forwarded-For"),
+ offsetof(ngx_http_headers_in_t, x_forwarded_for) },
+#endif
+
{ ngx_null_string, 0 }
};