[Modify] Rename it

master
sta 10 years ago
parent 3c94369a96
commit 7e0e992b59

@ -750,7 +750,7 @@ namespace WebSocketSharp
return false; return false;
} }
if (!validateSecWebSocketProtocolHeader (headers["Sec-WebSocket-Protocol"])) { if (!validateSecWebSocketProtocolServerHeader (headers["Sec-WebSocket-Protocol"])) {
message = "Includes no Sec-WebSocket-Protocol header, or it has an invalid value."; message = "Includes no Sec-WebSocket-Protocol header, or it has an invalid value.";
return false; return false;
} }
@ -1756,7 +1756,7 @@ namespace WebSocketSharp
} }
// As client // As client
private bool validateSecWebSocketProtocolHeader (string value) private bool validateSecWebSocketProtocolServerHeader (string value)
{ {
if (value == null) if (value == null)
return !_protocolsRequested; return !_protocolsRequested;

Loading…
Cancel
Save