mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-28 01:52:57 +01:00
If no path is available from the URI request /
This commit is contained in:
parent
08504e0892
commit
38080f67b3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user