comparison src/http/ngx_http_variables.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 631eff4a0188
children b7f6f097d95e
comparison
equal deleted inserted replaced
4696:b43fe2deb053 4697:09187f9b0950
132 #if (NGX_HTTP_GZIP) 132 #if (NGX_HTTP_GZIP)
133 { ngx_string("http_via"), NULL, ngx_http_variable_header, 133 { ngx_string("http_via"), NULL, ngx_http_variable_header,
134 offsetof(ngx_http_request_t, headers_in.via), 0, 0 }, 134 offsetof(ngx_http_request_t, headers_in.via), 0, 0 },
135 #endif 135 #endif
136 136
137 #if (NGX_HTTP_PROXY || NGX_HTTP_REALIP) 137 #if (NGX_HTTP_X_FORWARDED_FOR)
138 { ngx_string("http_x_forwarded_for"), NULL, ngx_http_variable_header, 138 { ngx_string("http_x_forwarded_for"), NULL, ngx_http_variable_header,
139 offsetof(ngx_http_request_t, headers_in.x_forwarded_for), 0, 0 }, 139 offsetof(ngx_http_request_t, headers_in.x_forwarded_for), 0, 0 },
140 #endif 140 #endif
141 141
142 { ngx_string("http_cookie"), NULL, ngx_http_variable_headers, 142 { ngx_string("http_cookie"), NULL, ngx_http_variable_headers,