[Modify] Polish it

master
sta 10 years ago
parent 18a04f1849
commit 6b6841f03b

@ -283,9 +283,10 @@ namespace WebSocketSharp.Net.WebSockets
public override IEnumerable<string> SecWebSocketProtocols {
get {
var protocols = _request.Headers["Sec-WebSocket-Protocol"];
if (protocols != null)
if (protocols != null) {
foreach (var protocol in protocols.Split (','))
yield return protocol.Trim ();
}
}
}

Loading…
Cancel
Save