We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 51e664d + 855a5bd commit d087851Copy full SHA for d087851
Assets/WebSocketServer/WebSocketProtocol.cs
@@ -75,7 +75,7 @@ public static bool CheckConnectionHandshake(RequestHeader request) {
75
}
76
77
// Must have a Connection: Upgrade
78
- if (!request.headers.ContainsKey("Connection") || !String.Equals(request.headers["Connection"], "Upgrade")) {
+ if (!request.headers.ContainsKey("Connection") || request.headers["Connection"].IndexOf("Upgrade") == -1) {
79
Debug.Log("Request does not have Connection: Upgrade.");
80
return false;
81
0 commit comments