There was an error while loading. Please reload this page.
1 parent 9685acf commit 97862fdCopy full SHA for 97862fd
websocket-sharp/Net/HttpListenerResponse.cs
@@ -960,8 +960,10 @@ public void SetCookie (Cookie cookie)
960
if (cookie == null)
961
throw new ArgumentNullException ("cookie");
962
963
- if (!canAddOrUpdate (cookie))
964
- throw new ArgumentException ("Cannot be replaced.", "cookie");
+ if (!canAddOrUpdate (cookie)) {
+ var msg = "It cannot be replaced.";
965
+ throw new ArgumentException (msg, "cookie");
966
+ }
967
968
Cookies.Add (cookie);
969
}
0 commit comments