mirror of
https://github.com/actix/actix-web.git
synced 2025-01-03 13:58:44 +00:00
https://github.com/actix/actix-web/issues/120 - Send Query Parameters in client requests
This commit is contained in:
parent
b4b0deb7fa
commit
401c0ad809
1 changed files with 2 additions and 1 deletions
|
@ -110,9 +110,10 @@ impl HttpClientWriter {
|
|||
self.flags.insert(Flags::UPGRADE);
|
||||
}
|
||||
|
||||
let path = msg.uri().path_and_query().map(|u| u.as_str()).unwrap_or("");
|
||||
// status line
|
||||
let _ = write!(buffer, "{} {} {:?}\r\n",
|
||||
msg.method(), msg.uri().path(), msg.version());
|
||||
msg.method(), path, msg.version());
|
||||
|
||||
// write headers
|
||||
for (key, value) in msg.headers() {
|
||||
|
|
Loading…
Reference in a new issue