-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TcpTunneling: Fix scheme header setting in TcpTunneling with upstream…
… http filters (#38438) previously attempted to fix in #36711 Issue is that if method is POST and tunnel is tls enabled, `scheme` header was still being forwarded as `http` instead of https. In upstreamHttpFilters case, tcppoxy::CombinedStream needs upstream connection info from Router::UpstreamRequest. Router::UpstreamRequest fills streamInfo with upstream connection info once connection pool is ready. After that UpstreamRequest invokes callback `onUpstreamHostSelected` at tcpproxy::CombinedStream. Thats when now changes in this PR is updating downstream_headers Risk Level: low Testing: integration test added --------- Signed-off-by: Vikas Choudhary (vikasc) <[email protected]>
- Loading branch information
1 parent
bf8275e
commit c59c865
Showing
4 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters