[Modify] Polish it

This commit is contained in:
sta 2017-11-03 16:25:21 +09:00
parent e27221737e
commit 7bfe82aa2e

View File

@ -390,11 +390,12 @@ namespace WebSocketSharp
/// </value> /// </value>
public IEnumerable<Cookie> Cookies { public IEnumerable<Cookie> Cookies {
get { get {
lock (_cookies.SyncRoot) lock (_cookies.SyncRoot) {
foreach (Cookie cookie in _cookies) foreach (Cookie cookie in _cookies)
yield return cookie; yield return cookie;
} }
} }
}
/// <summary> /// <summary>
/// Gets the credentials for the HTTP authentication (Basic/Digest). /// Gets the credentials for the HTTP authentication (Basic/Digest).