Skip to content

Commit

Permalink
g3proxy: fix detect of h2 extended connect protocol extension
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq-b committed Oct 11, 2024
1 parent 0bb4e3f commit f47ff23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion g3proxy/src/inspect/http/v2/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ use std::str::FromStr;

use bytes::Bytes;
use h2::client::SendRequest;
use h2::ext::Protocol;
use h2::server::SendResponse;
use h2::RecvStream;
use http::{Method, Request};

use g3_dpi::Protocol;
use g3_types::net::HttpUpgradeToken;

use super::{H2ConnectTask, H2ExtendedConnectTask, H2ForwardTask};
Expand Down
2 changes: 1 addition & 1 deletion lib/g3-http/src/server/transparent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ impl HttpTransparentRequest {
}
"upgrade" => {
self.connection_upgrade = true;
self.extra_connection_headers.push(http::header::UPGRADE);
self.extra_connection_headers.push(header::UPGRADE);
}
s => {
if let Ok(h) = HeaderName::from_str(s) {
Expand Down

0 comments on commit f47ff23

Please sign in to comment.