diff --git a/Cargo.toml b/Cargo.toml index 310ec7a..41dc3c4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wstunnel" -version = "9.2.3" +version = "9.2.2" edition = "2021" repository = "https://github.com/erebe/wstunnel.git" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/tunnel/transport/http2.rs b/src/tunnel/transport/http2.rs index 7e29cfc..3afadd9 100644 --- a/src/tunnel/transport/http2.rs +++ b/src/tunnel/transport/http2.rs @@ -113,7 +113,7 @@ pub async fn connect( let headers = headers_from_file(headers_file_path); let host = headers .iter() - .find(|(h, _)| h == HeaderName::from_static("HOST")) + .find(|(h, _)| h == HeaderName::from_static("host")) .and_then(|(_, v)| v.to_str().ok()) .map(|v| v.to_string()); (Some(headers), host) @@ -126,8 +126,8 @@ pub async fn connect( .uri(format!( "{}://{}/{}/events", client_cfg.remote_addr.scheme(), - authority.as_deref() - + authority + .as_deref() .unwrap_or(client_cfg.http_header_host.to_str().unwrap_or("")), &client_cfg.http_upgrade_path_prefix ))