From cb58a43ba0bbce6182d9a5259388c75763d63db7 Mon Sep 17 00:00:00 2001 From: Ivan Shynkarenka Date: Sat, 23 Dec 2023 12:57:17 +0400 Subject: [PATCH] Fix Bug: .NetFramework 4.8 ClientWebSocket Cann't Connect To .Net8 WsSession #278 --- source/NetCoreServer/WebSocket.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/NetCoreServer/WebSocket.cs b/source/NetCoreServer/WebSocket.cs index ff1f70f..ab375f0 100644 --- a/source/NetCoreServer/WebSocket.cs +++ b/source/NetCoreServer/WebSocket.cs @@ -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; }