1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-30 18:44:35 +01: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 // status line
let _ = write!(buffer, "{} {} {:?}\r\n", let _ = write!(buffer, "{} {} {:?}\r\n",
msg.method(), 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()); msg.version());
// write headers // write headers