[Modify] Replace it
This commit is contained in:
parent
b9966ca2af
commit
33fb0edf09
@ -612,15 +612,13 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
private IEnumerable<Cookie> findCookie (Cookie cookie)
|
private IEnumerable<Cookie> findCookie (Cookie cookie)
|
||||||
{
|
{
|
||||||
var name = cookie.Name;
|
if (_cookies == null)
|
||||||
var domain = cookie.Domain;
|
yield break;
|
||||||
var path = cookie.Path;
|
|
||||||
if (_cookies != null)
|
foreach (var c in _cookies) {
|
||||||
foreach (Cookie c in _cookies)
|
if (c.EqualsWithoutValue (cookie))
|
||||||
if (c.Name.Equals (name, StringComparison.OrdinalIgnoreCase) &&
|
yield return c;
|
||||||
c.Domain.Equals (domain, StringComparison.OrdinalIgnoreCase) &&
|
}
|
||||||
c.Path.Equals (path, StringComparison.Ordinal))
|
|
||||||
yield return c;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user