From 7e0e992b594f97e983ae04a497f4000ae9fbbf9a Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 16 Feb 2016 14:56:24 +0900 Subject: [PATCH] [Modify] Rename it --- websocket-sharp/WebSocket.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index 382292d9..d342d475 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -750,7 +750,7 @@ namespace WebSocketSharp 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."; return false; } @@ -1756,7 +1756,7 @@ namespace WebSocketSharp } // As client - private bool validateSecWebSocketProtocolHeader (string value) + private bool validateSecWebSocketProtocolServerHeader (string value) { if (value == null) return !_protocolsRequested;