diff --git a/websocket-sharp/Net/CookieCollection.cs b/websocket-sharp/Net/CookieCollection.cs index be66c009..dac87df2 100644 --- a/websocket-sharp/Net/CookieCollection.cs +++ b/websocket-sharp/Net/CookieCollection.cs @@ -502,13 +502,7 @@ namespace WebSocketSharp.Net if (cookie == null) throw new ArgumentNullException ("cookie"); - var idx = searchCookie (cookie); - if (idx == -1) { - _list.Add (cookie); - return; - } - - _list[idx] = cookie; + add (cookie); } ///