1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-10-21 09:23:54 +00:00

If no path is available from the URI request /

This commit is contained in:
Glade Miller 2018-03-13 13:35:11 -06:00
parent 08504e0892
commit 38080f67b3

View file

@ -113,7 +113,7 @@ impl HttpClientWriter {
// status line
let _ = write!(buffer, "{} {} {:?}\r\n",
msg.method(),
msg.uri().path_and_query().map(|u| u.as_str()).unwrap_or(""),
msg.uri().path_and_query().map(|u| u.as_str()).unwrap_or("/"),
msg.version());
// write headers