SWT ClientHandshake - fixed error

This commit is contained in:
MrGadget1024 2023-02-19 23:07:05 -05:00
parent 7ad18a247c
commit 494f6b342c

View File

@ -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)
{