mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
various small changes, allow bundling the wasm in the js file
This commit is contained in:
parent
d50e6b6bec
commit
718b285907
5 changed files with 13 additions and 11 deletions
|
@ -82,7 +82,6 @@ async fn send_req(req: http::Request<HttpBody>, should_redirect: bool, io: WsTcp
|
|||
}
|
||||
let new_url = redirect_url.clone();
|
||||
*new_req.uri_mut() = redirect_url;
|
||||
new_req.headers_mut().remove("Host");
|
||||
new_req.headers_mut().insert(
|
||||
"Host",
|
||||
HeaderValue::from_str(redirect_url_authority.as_str())?,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue