[Modify] Polish it

This commit is contained in:
sta 2016-06-30 15:19:07 +09:00
parent f374018356
commit 26fb29ef00

View File

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