Skip to content

Commit 52cc143

Browse files
authored
Merge pull request #359 from Fishrock123/fix-hyperium_http-headers-multiple
fix: append from hyperium translation
2 parents a460c7a + a222b1d commit 52cc143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hyperium_http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fn hyperium_headers_to_headers(hyperium_headers: http::HeaderMap, headers: &mut
6161
if let Some(name) = name {
6262
let name = name.as_str().as_bytes().to_owned();
6363
let name = unsafe { HeaderName::from_bytes_unchecked(name) };
64-
headers.insert(name, value).unwrap();
64+
headers.append(name, value);
6565
}
6666
}
6767
}

0 commit comments

Comments
 (0)