Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
4696:b43fe2deb053 | 4697:09187f9b0950 |
---|---|
136 ngx_http_process_unique_header_line }, | 136 ngx_http_process_unique_header_line }, |
137 | 137 |
138 { ngx_string("Keep-Alive"), offsetof(ngx_http_headers_in_t, keep_alive), | 138 { ngx_string("Keep-Alive"), offsetof(ngx_http_headers_in_t, keep_alive), |
139 ngx_http_process_header_line }, | 139 ngx_http_process_header_line }, |
140 | 140 |
141 #if (NGX_HTTP_PROXY || NGX_HTTP_REALIP || NGX_HTTP_GEO) | 141 #if (NGX_HTTP_X_FORWARDED_FOR) |
142 { ngx_string("X-Forwarded-For"), | 142 { ngx_string("X-Forwarded-For"), |
143 offsetof(ngx_http_headers_in_t, x_forwarded_for), | 143 offsetof(ngx_http_headers_in_t, x_forwarded_for), |
144 ngx_http_process_header_line }, | 144 ngx_http_process_header_line }, |
145 #endif | 145 #endif |
146 | 146 |