Skip to content

Commit 7e0e992

Browse files
committed
[Modify] Rename it
1 parent 3c94369 commit 7e0e992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

websocket-sharp/WebSocket.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ private bool checkHandshakeResponse (HttpResponse response, out string message)
750750
return false;
751751
}
752752

753-
if (!validateSecWebSocketProtocolHeader (headers["Sec-WebSocket-Protocol"])) {
753+
if (!validateSecWebSocketProtocolServerHeader (headers["Sec-WebSocket-Protocol"])) {
754754
message = "Includes no Sec-WebSocket-Protocol header, or it has an invalid value.";
755755
return false;
756756
}
@@ -1756,7 +1756,7 @@ private bool validateSecWebSocketProtocolClientHeader (string value)
17561756
}
17571757

17581758
// As client
1759-
private bool validateSecWebSocketProtocolHeader (string value)
1759+
private bool validateSecWebSocketProtocolServerHeader (string value)
17601760
{
17611761
if (value == null)
17621762
return !_protocolsRequested;

0 commit comments

Comments
 (0)