don't hide ws errors and ignore host header because it'll result in errors anyway

This commit is contained in:
Toshit Chawda 2024-10-27 17:38:25 -07:00
parent b6ba44eaa3
commit 2d73524408
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
5 changed files with 27 additions and 33 deletions

View file

@ -641,6 +641,9 @@ impl EpoxyClient {
if let Some(headers) = headers {
for hdr in headers {
if ["host"].contains(&hdr[0].to_lowercase().as_str()) {
continue;
}
headers_map.insert(
HeaderName::from_str(&hdr[0])?,
HeaderValue::from_str(&hdr[1])?,