[Modify] Polish it

master
sta 8 years ago
parent a31fc09cf0
commit 8e6040983f

@ -961,7 +961,7 @@ namespace WebSocketSharp
} }
var protocol = headers["Sec-WebSocket-Protocol"]; var protocol = headers["Sec-WebSocket-Protocol"];
if (!validateSecWebSocketProtocolClientHeader (protocol)) { if (protocol != null && protocol.Length == 0) {
message = "It includes an invalid Sec-WebSocket-Protocol header."; message = "It includes an invalid Sec-WebSocket-Protocol header.";
return false; return false;
} }

Loading…
Cancel
Save