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.
1 parent 74796b0 commit acc3a69Copy full SHA for acc3a69
websocket-sharp/Net/HttpListenerRequest.cs
@@ -278,10 +278,9 @@ public bool IsSecureConnection {
278
public bool IsWebSocketRequest {
279
get {
280
if (!_websocketRequestSet) {
281
- _websocketRequest = _method == "GET" &&
282
- _version > HttpVersion.Version10 &&
283
- _headers.Contains ("Upgrade", "websocket") &&
284
- _headers.Contains ("Connection", "Upgrade");
+ _websocketRequest = _method == "GET"
+ && _version > HttpVersion.Version10
+ && this.IsUpgradeTo ("websocket");
285
286
_websocketRequestSet = true;
287
}
0 commit comments