From 494f6b342c5586723a660b2179500113f6d62f92 Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Sun, 19 Feb 2023 23:07:05 -0500 Subject: [PATCH] SWT ClientHandshake - fixed error --- .../SimpleWeb/SimpleWeb/Client/StandAlone/ClientHandshake.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/StandAlone/ClientHandshake.cs b/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/StandAlone/ClientHandshake.cs index 7f01a1698..7bf98eb28 100644 --- a/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/StandAlone/ClientHandshake.cs +++ b/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/StandAlone/ClientHandshake.cs @@ -60,7 +60,7 @@ public bool TryHandshake(Connection conn, Uri uri) Log.Verbose($"[SimpleWebTransport] Handshake Response {responseString}"); string acceptHeader = "Sec-WebSocket-Accept: "; - int startIndex = responseString.IndexOf(acceptHeader, StringComparison.InvariantCultureIgnoreCase) + acceptHeader.Length; + int startIndex = responseString.IndexOf(acceptHeader, StringComparison.InvariantCultureIgnoreCase); if (startIndex < 0) {