Skip to content

Commit

Permalink
Fix Bug: .NetFramework 4.8 ClientWebSocket Cann't Connect To .Net8 Ws…
Browse files Browse the repository at this point in the history
…Session #278
  • Loading branch information
chronoxor committed Dec 23, 2023
1 parent fcbbcb7 commit cb58a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/NetCoreServer/WebSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public bool PerformServerUpgrade(HttpRequest request, HttpResponse response)
if ((string.Compare(value, "Upgrade", StringComparison.OrdinalIgnoreCase) != 0) && (string.Compare(value.RemoveWhiteSpace(), "keep-alive,Upgrade", StringComparison.OrdinalIgnoreCase) != 0))
{
error = true;
response.MakeErrorResponse(400, "Invalid WebSocket handshaked request: 'Connection' header value must be 'Upgrade' or 'Upgrade, keep-alive'");
response.MakeErrorResponse(400, "Invalid WebSocket handshaked request: 'Connection' header value must be 'Upgrade' or 'keep-alive, Upgrade'");
break;
}

Expand Down

0 comments on commit cb58a43

Please sign in to comment.