Mercurial > hg > nginx-vendor-0-7
comparison src/http/ngx_http_request.c @ 38:2879cd3a40cb NGINX_0_1_19
nginx 0.1.19
*) Bugfix: now, if request contains the zero, then the 404 error is
returned for the local requests.
*) Bugfix: nginx could not be built on NetBSD 2.0.
*) Bugfix: the timeout may occur while reading of the the client
request body via SSL connections.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 16 Feb 2005 00:00:00 +0300 |
parents | da8c190bdaba |
children | 41ccba1aba45 |
comparison
equal
deleted
inserted
replaced
37:3376a7dea5d6 | 38:2879cd3a40cb |
---|---|
56 | 56 |
57 ngx_http_header_t ngx_http_headers_in[] = { | 57 ngx_http_header_t ngx_http_headers_in[] = { |
58 { ngx_string("Host"), offsetof(ngx_http_headers_in_t, host) }, | 58 { ngx_string("Host"), offsetof(ngx_http_headers_in_t, host) }, |
59 { ngx_string("Connection"), offsetof(ngx_http_headers_in_t, connection) }, | 59 { ngx_string("Connection"), offsetof(ngx_http_headers_in_t, connection) }, |
60 { ngx_string("If-Modified-Since"), | 60 { ngx_string("If-Modified-Since"), |
61 offsetof(ngx_http_headers_in_t, if_modified_since) }, | 61 offsetof(ngx_http_headers_in_t, if_modified_since) }, |
62 { ngx_string("User-Agent"), offsetof(ngx_http_headers_in_t, user_agent) }, | 62 { ngx_string("User-Agent"), offsetof(ngx_http_headers_in_t, user_agent) }, |
63 { ngx_string("Referer"), offsetof(ngx_http_headers_in_t, referer) }, | 63 { ngx_string("Referer"), offsetof(ngx_http_headers_in_t, referer) }, |
64 { ngx_string("Content-Length"), | 64 { ngx_string("Content-Length"), |
65 offsetof(ngx_http_headers_in_t, content_length) }, | 65 offsetof(ngx_http_headers_in_t, content_length) }, |
66 { ngx_string("Content-Type"), | 66 { ngx_string("Content-Type"), |
67 offsetof(ngx_http_headers_in_t, content_type) }, | 67 offsetof(ngx_http_headers_in_t, content_type) }, |
68 | 68 |
69 { ngx_string("Range"), offsetof(ngx_http_headers_in_t, range) }, | 69 { ngx_string("Range"), offsetof(ngx_http_headers_in_t, range) }, |
70 #if 0 | 70 #if 0 |
71 { ngx_string("If-Range"), offsetof(ngx_http_headers_in_t, if_range) }, | 71 { ngx_string("If-Range"), offsetof(ngx_http_headers_in_t, if_range) }, |
72 #endif | 72 #endif |
73 | 73 |
74 #if (NGX_HTTP_GZIP) | 74 #if (NGX_HTTP_GZIP) |
75 { ngx_string("Accept-Encoding"), | 75 { ngx_string("Accept-Encoding"), |
76 offsetof(ngx_http_headers_in_t, accept_encoding) }, | 76 offsetof(ngx_http_headers_in_t, accept_encoding) }, |
77 { ngx_string("Via"), offsetof(ngx_http_headers_in_t, via) }, | 77 { ngx_string("Via"), offsetof(ngx_http_headers_in_t, via) }, |
78 #endif | 78 #endif |
79 | 79 |
80 { ngx_string("Authorization"), | 80 { ngx_string("Authorization"), |
81 offsetof(ngx_http_headers_in_t, authorization) }, | 81 offsetof(ngx_http_headers_in_t, authorization) }, |
82 | 82 |
83 { ngx_string("Keep-Alive"), offsetof(ngx_http_headers_in_t, keep_alive) }, | 83 { ngx_string("Keep-Alive"), offsetof(ngx_http_headers_in_t, keep_alive) }, |
84 | 84 |
85 #if (NGX_HTTP_PROXY) | 85 #if (NGX_HTTP_PROXY) |
86 { ngx_string("X-Forwarded-For"), | 86 { ngx_string("X-Forwarded-For"), |
87 offsetof(ngx_http_headers_in_t, x_forwarded_for) }, | 87 offsetof(ngx_http_headers_in_t, x_forwarded_for) }, |
88 { ngx_string("X-Real-IP"), offsetof(ngx_http_headers_in_t, x_real_ip) }, | 88 { ngx_string("X-Real-IP"), offsetof(ngx_http_headers_in_t, x_real_ip) }, |
89 { ngx_string("X-URL"), offsetof(ngx_http_headers_in_t, x_url) }, | 89 { ngx_string("X-URL"), offsetof(ngx_http_headers_in_t, x_url) }, |
90 #endif | |
91 | |
92 #if (NGX_HTTP_HEADERS) | |
93 { ngx_string("Accept"), offsetof(ngx_http_headers_in_t, accept) }, | |
94 { ngx_string("Accept-Language"), | |
95 offsetof(ngx_http_headers_in_t, accept_language) }, | |
96 { ngx_string("Via"), offsetof(ngx_http_headers_in_t, via) }, | |
90 #endif | 97 #endif |
91 | 98 |
92 { ngx_null_string, 0 } | 99 { ngx_null_string, 0 } |
93 }; | 100 }; |
94 | 101 |