diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-01-29 07:25:51 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-01-29 07:25:51 +0000 |
| commit | fe5cb6b9e9195718578938d7cd236fe538dbb331 (patch) | |
| tree | 3e6dc306afbb64c76a3cdd8eeeba1db23792dcb7 /src/http/ngx_http_event.c | |
| parent | a19a85e600c1c4d7daa9fdd20df3777169b5dc2b (diff) | |
| download | nginx-fe5cb6b9e9195718578938d7cd236fe538dbb331.tar.gz nginx-fe5cb6b9e9195718578938d7cd236fe538dbb331.tar.bz2 | |
nginx-0.0.1-2003-01-29-10:25:51 import
Diffstat (limited to 'src/http/ngx_http_event.c')
| -rw-r--r-- | src/http/ngx_http_event.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/ngx_http_event.c b/src/http/ngx_http_event.c index 82f0d2d26..26e67f8c8 100644 --- a/src/http/ngx_http_event.c +++ b/src/http/ngx_http_event.c @@ -397,14 +397,13 @@ static int ngx_http_process_request_headers(ngx_http_request_t *r) break; } } - r->headers_in.host_name.len = len; - r->headers_in.host_name.data = r->headers_in.host->value.data; + r->headers_in.host_name_len = len; } else { if (r->http_version > NGX_HTTP_VERSION_10) { return ngx_http_error(r, NGX_HTTP_BAD_REQUEST); } - r->headers_in.host_name.len = 0; + r->headers_in.host_name_len = 0; } return NGX_OK; |
