[Modify] Replace it
This commit is contained in:
parent
afe129fd92
commit
536a7d4381
@ -502,13 +502,7 @@ namespace WebSocketSharp.Net
|
|||||||
if (cookie == null)
|
if (cookie == null)
|
||||||
throw new ArgumentNullException ("cookie");
|
throw new ArgumentNullException ("cookie");
|
||||||
|
|
||||||
var idx = searchCookie (cookie);
|
add (cookie);
|
||||||
if (idx == -1) {
|
|
||||||
_list.Add (cookie);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_list[idx] = cookie;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user