summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-11-20 17:12:15 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-11-20 17:12:15 +0000
commit85739a44d763d88e8213610934900b8a6b849b2c (patch)
tree5b896ce3057efeef2ef8ed7d57e5e6108bcdf65f
parent2bafd398334e4a802c3363c63c9a1275d8158a85 (diff)
downloadnginx-85739a44d763d88e8213610934900b8a6b849b2c.tar.gz
nginx-85739a44d763d88e8213610934900b8a6b849b2c.tar.bz2
r2194 merge:
fix $r->header_in() for "User-Agent", "Connection", and "Host" broken in r2091 and r2093 merges
-rw-r--r--src/http/ngx_http_request.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 5258ad91f..aa61c5e62 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -74,15 +74,18 @@ static char *ngx_http_client_errors[] = {
ngx_http_header_t ngx_http_headers_in[] = {
- { ngx_string("Host"), 0, ngx_http_process_host },
+ { ngx_string("Host"), offsetof(ngx_http_headers_in_t, host),
+ ngx_http_process_host },
- { ngx_string("Connection"), 0, ngx_http_process_connection },
+ { ngx_string("Connection"), offsetof(ngx_http_headers_in_t, connection),
+ ngx_http_process_connection },
{ ngx_string("If-Modified-Since"),
offsetof(ngx_http_headers_in_t, if_modified_since),
ngx_http_process_unique_header_line },
- { ngx_string("User-Agent"), 0, ngx_http_process_user_agent },
+ { ngx_string("User-Agent"), offsetof(ngx_http_headers_in_t, user_agent),
+ ngx_http_process_user_agent },
{ ngx_string("Referer"), offsetof(ngx_http_headers_in_t, referer),
ngx_http_process_header_line },