mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 09:42:40 +01:00
Merge pull request #121 from glademiller/master
Send Query Parameters in client requests
This commit is contained in:
commit
8a50eae1e2
@ -112,7 +112,9 @@ impl HttpClientWriter {
|
|||||||
|
|
||||||
// status line
|
// status line
|
||||||
let _ = write!(buffer, "{} {} {:?}\r\n",
|
let _ = write!(buffer, "{} {} {:?}\r\n",
|
||||||
msg.method(), msg.uri().path(), msg.version());
|
msg.method(),
|
||||||
|
msg.uri().path_and_query().map(|u| u.as_str()).unwrap_or("/"),
|
||||||
|
msg.version());
|
||||||
|
|
||||||
// write headers
|
// write headers
|
||||||
for (key, value) in msg.headers() {
|
for (key, value) in msg.headers() {
|
||||||
|
Loading…
Reference in New Issue
Block a user