diff options
author | Ruslan Ermilov <ru@nginx.com> | 2012-06-21 15:02:22 +0400 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2012-06-21 15:02:22 +0400 |
commit | 42444811b9281b1946a7a6f6d2f0b3ab2a98c269 (patch) | |
tree | 512552aca6ad9646f9aa9537e595aa55e2c75ac2 /src/http/ngx_http_request.c | |
parent | 992a4d11daadaa440ea4bc879c53aadef5721c63 (diff) |
Fixed compile-time conditionals used to detect if X-Forwarded-For support
is needed.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index b1877131c..e0ae5241f 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -138,7 +138,7 @@ ngx_http_header_t ngx_http_headers_in[] = { { ngx_string("Keep-Alive"), offsetof(ngx_http_headers_in_t, keep_alive), ngx_http_process_header_line }, -#if (NGX_HTTP_PROXY || NGX_HTTP_REALIP || NGX_HTTP_GEO) +#if (NGX_HTTP_X_FORWARDED_FOR) { ngx_string("X-Forwarded-For"), offsetof(ngx_http_headers_in_t, x_forwarded_for), ngx_http_process_header_line }, |