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:
parent
08504e0892
commit
38080f67b3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user