various small changes, allow bundling the wasm in the js file

This commit is contained in:
Toshit Chawda 2024-01-13 04:40:01 -08:00
parent d50e6b6bec
commit 718b285907
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
5 changed files with 13 additions and 11 deletions

View file

@ -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())?,