comparison src/http/ngx_http_request.c @ 2005:22ec7da42e6f

small fixes
author Igor Sysoev <igor@sysoev.ru>
date Tue, 13 May 2008 09:47:52 +0000
parents 38fa1d3a31b7
children b9de93d804ea
comparison
equal deleted inserted replaced
2004:38fa1d3a31b7 2005:22ec7da42e6f
72 72
73 ngx_http_header_t ngx_http_headers_in[] = { 73 ngx_http_header_t ngx_http_headers_in[] = {
74 { ngx_string("Host"), offsetof(ngx_http_headers_in_t, host), 74 { ngx_string("Host"), offsetof(ngx_http_headers_in_t, host),
75 ngx_http_process_unique_header_line }, 75 ngx_http_process_unique_header_line },
76 76
77 { ngx_string("Connection"), offsetof(ngx_http_headers_in_t, connection), 77 { ngx_string("Connection"), 0, ngx_http_process_connection },
78 ngx_http_process_connection },
79 78
80 { ngx_string("If-Modified-Since"), 79 { ngx_string("If-Modified-Since"),
81 offsetof(ngx_http_headers_in_t, if_modified_since), 80 offsetof(ngx_http_headers_in_t, if_modified_since),
82 ngx_http_process_unique_header_line }, 81 ngx_http_process_unique_header_line },
83 82
1266 1265
1267 user_agent = h->value.data; 1266 user_agent = h->value.data;
1268 1267
1269 ua = ngx_strstrn(user_agent, "MSIE", 4 - 1); 1268 ua = ngx_strstrn(user_agent, "MSIE", 4 - 1);
1270 1269
1271 if (ua && ua + 8 < user_agent + r->headers_in.user_agent->value.len) { 1270 if (ua && ua + 8 < user_agent + h->value.len) {
1272 1271
1273 r->headers_in.msie = 1; 1272 r->headers_in.msie = 1;
1274 1273
1275 if (ua[4] == ' ' && ua[5] == '4' && ua[6] == '.') { 1274 if (ua[4] == ' ' && ua[5] == '4' && ua[6] == '.') {
1276 r->headers_in.msie4 = 1; 1275 r->headers_in.msie4 = 1;