We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd65c3 commit ce3cc82Copy full SHA for ce3cc82
src/isahc.rs
@@ -49,10 +49,8 @@ impl HttpClient for IsahcClient {
49
.uri(req.url().as_str())
50
.method(http::Method::from_bytes(req.method().to_string().as_bytes()).unwrap());
51
52
- for name in req.header_names() {
53
- if let Some(value) = req.header(name) {
54
- builder = builder.header(name.as_str(), value.as_str());
55
- }
+ for (name, value) in req.iter() {
+ builder = builder.header(name.as_str(), value.as_str());
56
}
57
58
let body = req.take_body();
0 commit comments