[Modify] Polish it
This commit is contained in:
parent
18a04f1849
commit
6b6841f03b
@ -283,11 +283,12 @@ namespace WebSocketSharp.Net.WebSockets
|
|||||||
public override IEnumerable<string> SecWebSocketProtocols {
|
public override IEnumerable<string> SecWebSocketProtocols {
|
||||||
get {
|
get {
|
||||||
var protocols = _request.Headers["Sec-WebSocket-Protocol"];
|
var protocols = _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 ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the value of the Sec-WebSocket-Version header included in the request.
|
/// Gets the value of the Sec-WebSocket-Version header included in the request.
|
||||||
|
Loading…
Reference in New Issue
Block a user