[Modify] Polish it

master
sta 10 years ago
parent f374018356
commit 26fb29ef00

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

Loading…
Cancel
Save