diff --git a/Cargo.toml b/Cargo.toml index f3fac36..484e6a1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "x8" -version = "2.3.1" +version = "2.3.2" authors = ["Alexander Mironov "] edition = "2018" license = "GPL-3.0-or-later" @@ -14,7 +14,7 @@ readme = "README.md" [dependencies] tokio = { version = "1", features = ["full"] } futures = "0.3.15" -reqwest = { version = "0.11", features = ["socks", "json", "cookies", "rustls-tls", "trust-dns"] } +reqwest = { version = "0.11.2", features = ["socks", "json", "cookies", "rustls-tls", "trust-dns"] } regex = "1.3.7" percent-encoding = "2.1.0" lazy_static = "1.4.0" diff --git a/src/utils.rs b/src/utils.rs index 4205f2f..9bae62a 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -291,7 +291,7 @@ pub fn parse_request(insecure: bool, request: &str, config: Config) -> Option Option content_type = value.clone(), - "host" => host = value.clone(), + "host" => { + host = value.clone(); + if http2 { + continue + } + }, "content-length" => continue, _ => () }; @@ -342,10 +347,13 @@ pub fn parse_request(insecure: bool, request: &str, config: Config) -> Option