[Modify] Rename it

This commit is contained in:
sta 2016-02-16 14:56:24 +09:00
parent 3c94369a96
commit 7e0e992b59

View File

@ -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;