Skip to content

Commit

Permalink
Merge pull request #2119 from benjaminpetit/fix/extended-connect-main
Browse files Browse the repository at this point in the history
Fix extended connect check condition
  • Loading branch information
benjaminpetit committed May 2, 2023
2 parents 763871a + 8149f15 commit 6736e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReverseProxy/Forwarder/HttpForwarder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ private void FixupUpgradeRequestHeaders(HttpContext context, HttpRequestMessage
// TODO: Kestrel bug, this shouldn't be true for ExtendedConnect.
#if NET7_0_OR_GREATER
var connectFeature = request.HttpContext.Features.Get<IHttpExtendedConnectFeature>();
if (connectFeature?.Protocol != null)
if (connectFeature?.IsExtendedConnect == true)
{
hasBody = false;
}
Expand Down

0 comments on commit 6736e0a

Please sign in to comment.