mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
don't hide ws errors and ignore host header because it'll result in errors anyway
This commit is contained in:
parent
b6ba44eaa3
commit
2d73524408
5 changed files with 27 additions and 33 deletions
|
@ -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])?,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue