[Modify] Rename it

This commit is contained in:
sta 2017-12-04 15:32:15 +09:00
parent 28cdefcd89
commit 5c882fd917

View File

@ -888,8 +888,10 @@ namespace WebSocketSharp
_base64Key = _context.Headers["Sec-WebSocket-Key"]; _base64Key = _context.Headers["Sec-WebSocket-Key"];
if (_protocol != null) if (_protocol != null) {
processSecWebSocketProtocolHeader (_context.SecWebSocketProtocols); var vals = _context.SecWebSocketProtocols;
processSecWebSocketProtocolClientHeader (vals);
}
if (!_ignoreExtensions) { if (!_ignoreExtensions) {
var val = _context.Headers["Sec-WebSocket-Extensions"]; var val = _context.Headers["Sec-WebSocket-Extensions"];
@ -1745,7 +1747,9 @@ namespace WebSocketSharp
} }
// As server // As server
private void processSecWebSocketProtocolHeader (IEnumerable<string> values) private void processSecWebSocketProtocolClientHeader (
IEnumerable<string> values
)
{ {
if (values.Contains (val => val == _protocol)) if (values.Contains (val => val == _protocol))
return; return;