1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-09-09 05:08:32 +00:00

Merge pull request #121 from glademiller/master

Send Query Parameters in client requests
This commit is contained in:
Nikolay Kim 2018-03-13 13:14:51 -07:00 committed by GitHub
commit 8a50eae1e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,9 @@ impl HttpClientWriter {
// status line
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
for (key, value) in msg.headers() {