comparison src/http/ngx_http_variables.c @ 1113:f1d7cf0f68e3

optimize $http_x_forwarded_for
author Igor Sysoev <igor@sysoev.ru>
date Thu, 15 Feb 2007 15:04:36 +0000
parents 7a8ca436d611
children 1030996f617c
comparison
equal deleted inserted replaced
1112:3dcc3041b5bc 1113:f1d7cf0f68e3
99 #if (NGX_HTTP_GZIP) 99 #if (NGX_HTTP_GZIP)
100 { ngx_string("http_via"), NULL, ngx_http_variable_header, 100 { ngx_string("http_via"), NULL, ngx_http_variable_header,
101 offsetof(ngx_http_request_t, headers_in.via), 0, 0 }, 101 offsetof(ngx_http_request_t, headers_in.via), 0, 0 },
102 #endif 102 #endif
103 103
104 #if (NGX_HTTP_PROXY) 104 #if (NGX_HTTP_PROXY || NGX_HTTP_REALIP)
105 { ngx_string("http_x_forwarded_for"), NULL, ngx_http_variable_header, 105 { ngx_string("http_x_forwarded_for"), NULL, ngx_http_variable_header,
106 offsetof(ngx_http_request_t, headers_in.x_forwarded_for), 0, 0 }, 106 offsetof(ngx_http_request_t, headers_in.x_forwarded_for), 0, 0 },
107 #endif 107 #endif
108 108
109 { ngx_string("http_cookie"), NULL, ngx_http_variable_headers, 109 { ngx_string("http_cookie"), NULL, ngx_http_variable_headers,