1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-30 18:44:35 +01:00

https://github.com/actix/actix-web/issues/120 - Send Query Parameters in client requests

This commit is contained in:
Glade Miller 2018-03-13 13:17:55 -06:00
parent b4b0deb7fa
commit 401c0ad809

View File

@ -110,9 +110,10 @@ impl HttpClientWriter {
self.flags.insert(Flags::UPGRADE); self.flags.insert(Flags::UPGRADE);
} }
let path = msg.uri().path_and_query().map(|u| u.as_str()).unwrap_or("");
// status line // status line
let _ = write!(buffer, "{} {} {:?}\r\n", let _ = write!(buffer, "{} {} {:?}\r\n",
msg.method(), msg.uri().path(), msg.version()); msg.method(), path, msg.version());
// write headers // write headers
for (key, value) in msg.headers() { for (key, value) in msg.headers() {