Skip to content

Commit

Permalink
Remove 7.0-specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaZupan committed May 14, 2024
1 parent 8934764 commit 7fa8018
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/ReverseProxy/Forwarder/HttpForwarder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,16 +513,6 @@ private void FixupUpgradeRequestHeaders(HttpContext context, HttpRequestMessage
{
// 5.0 servers provide a definitive answer for us.
hasBody = canHaveBodyFeature.CanHaveBody;

#if NET7_0
// TODO: Kestrel 7.0 bug only, hasBody shouldn't be true for ExtendedConnect.
// https://github.com/dotnet/aspnetcore/issues/46002 Fixed in 8.0
var connectFeature = request.HttpContext.Features.Get<IHttpExtendedConnectFeature>();
if (connectFeature?.IsExtendedConnect == true)
{
hasBody = false;
}
#endif
}
// https://tools.ietf.org/html/rfc7230#section-3.3.3
// All HTTP/1.1 requests should have Transfer-Encoding or Content-Length.
Expand Down

0 comments on commit 7fa8018

Please sign in to comment.