fix segfault when $host is used and request is "GET http://host HTTP/1.0"

This commit is contained in:
Igor Sysoev 2006-12-14 22:42:52 +00:00
parent 55269a70cf
commit f367b11a62

View File

@ -290,6 +290,7 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
state = sw_after_slash_in_uri;
break;
default:
r->host_end = p;
return NGX_HTTP_PARSE_INVALID_REQUEST;
}
break;