SimpleWebTransport fix ssl handshake (#2689)

This fixes the handshake for reverse proxy use
This commit is contained in:
Laur3nt1u 2021-04-14 05:11:56 +03:00 committed by GitHub
parent 8ef84791be
commit 6db8e4a929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ public bool TryHandshake(Connection conn, Uri uri)
string expectedResponse = Convert.ToBase64String(keySumHash);
string handshake =
$"GET /chat HTTP/1.1\r\n" +
$"GET {uri.PathAndQuery} HTTP/1.1\r\n" +
$"Host: {uri.Host}:{uri.Port}\r\n" +
$"Upgrade: websocket\r\n" +
$"Connection: Upgrade\r\n" +