Mercurial > hg > nginx
diff src/http/ngx_http_request.c @ 4697:09187f9b0950
Fixed compile-time conditionals used to detect if X-Forwarded-For support
is needed.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 21 Jun 2012 11:02:22 +0000 |
parents | 79c147bdeb6a |
children | 986cc869b09d |
line wrap: on
line diff
--- 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 },