[Modify] Polish it
This commit is contained in:
parent
a31fc09cf0
commit
8e6040983f
@ -961,7 +961,7 @@ namespace WebSocketSharp
|
||||
}
|
||||
|
||||
var protocol = headers["Sec-WebSocket-Protocol"];
|
||||
if (!validateSecWebSocketProtocolClientHeader (protocol)) {
|
||||
if (protocol != null && protocol.Length == 0) {
|
||||
message = "It includes an invalid Sec-WebSocket-Protocol header.";
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user