mirror of
https://github.com/nginx/nginx.git
synced 2025-06-09 19:12:47 +08:00
fix segfault when $host is used and request is "GET http://host HTTP/1.0"
This commit is contained in:
parent
55269a70cf
commit
f367b11a62
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user