1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-21 05:05:44 +02:00

return back consuming builder

This commit is contained in:
Nikolay Kim
2019-04-02 12:51:16 -07:00
parent 49a499ce74
commit e282ef7925
5 changed files with 152 additions and 195 deletions

View File

@@ -105,7 +105,7 @@ impl Client {
let mut req = ClientRequest::new(method, url, self.0.clone());
for (key, value) in &self.0.headers {
req.set_header_if_none(key.clone(), value.clone());
req = req.set_header_if_none(key.clone(), value.clone());
}
req
}
@@ -120,7 +120,7 @@ impl Client {
{
let mut req = self.request(head.method.clone(), url);
for (key, value) in &head.headers {
req.set_header_if_none(key.clone(), value.clone());
req = req.set_header_if_none(key.clone(), value.clone());
}
req
}