Klaus Demo nginx / cbc7c61
fix $r->header_in() for "User-Agent", "Connection", and "Host" broken in r2005, r2006, and r2008. Igor Sysoev 12 years ago
1 changed file(s) with 7 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
7373
7474
7575 ngx_http_header_t ngx_http_headers_in[] = {
76 { ngx_string("Host"), 0, ngx_http_process_host },
77
78 { ngx_string("Connection"), 0, ngx_http_process_connection },
76 { ngx_string("Host"), offsetof(ngx_http_headers_in_t, host),
77 ngx_http_process_host },
78
79 { ngx_string("Connection"), offsetof(ngx_http_headers_in_t, connection),
80 ngx_http_process_connection },
7981
8082 { ngx_string("If-Modified-Since"),
8183 offsetof(ngx_http_headers_in_t, if_modified_since),
8284 ngx_http_process_unique_header_line },
8385
84 { ngx_string("User-Agent"), 0, ngx_http_process_user_agent },
86 { ngx_string("User-Agent"), offsetof(ngx_http_headers_in_t, user_agent),
87 ngx_http_process_user_agent },
8588
8689 { ngx_string("Referer"), offsetof(ngx_http_headers_in_t, referer),
8790 ngx_http_process_header_line },