diff src/http/ngx_http_parse.c @ 864:7521e5f5d555

use host part in URL
author Igor Sysoev <igor@sysoev.ru>
date Thu, 23 Nov 2006 20:20:23 +0000
parents 9ddb57468082
children ee42dc53078b
line wrap: on
line diff
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -260,7 +260,7 @@ ngx_http_parse_request_line(ngx_http_req
         case sw_schema_slash_slash:
             switch (ch) {
             case '/':
-                r->host_start = p;
+                r->host_start = p + 1;
                 state = sw_host;
                 break;
             default: