[Modify] Rename it

This commit is contained in:
sta 2019-11-11 21:26:05 +09:00
parent b70705ee95
commit 021c8dcf6b

View File

@ -587,7 +587,7 @@ namespace WebSocketSharp.Net
#region Private Methods
private bool canAddOrUpdate (Cookie cookie)
private bool canSetCookie (Cookie cookie)
{
var found = findCookie (cookie).ToList ();
@ -961,7 +961,7 @@ namespace WebSocketSharp.Net
if (cookie == null)
throw new ArgumentNullException ("cookie");
if (!canAddOrUpdate (cookie)) {
if (!canSetCookie (cookie)) {
var msg = "It cannot be updated.";
throw new ArgumentException (msg, "cookie");
}