diff src/http/ngx_http_event.c @ 55:cad6c2f43283

nginx-0.0.1-2003-01-29-10:25:51 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 29 Jan 2003 07:25:51 +0000
parents 27b628ef907e
children a499e0d1f16e
line wrap: on
line diff
--- a/src/http/ngx_http_event.c
+++ b/src/http/ngx_http_event.c
@@ -397,14 +397,13 @@ static int ngx_http_process_request_head
                          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;