diff --git a/websocket-sharp/Net/CookieCollection.cs b/websocket-sharp/Net/CookieCollection.cs index a4caada9..cbfe39fa 100644 --- a/websocket-sharp/Net/CookieCollection.cs +++ b/websocket-sharp/Net/CookieCollection.cs @@ -332,7 +332,7 @@ namespace WebSocketSharp.Net } else if (pair.StartsWith ("comment", StringComparison.InvariantCultureIgnoreCase)) { if (cookie != null) - cookie.Comment = pair.GetValue ('=').UrlDecode (); + cookie.Comment = HttpUtility.UrlDecode (pair.GetValue ('=')); } else if (pair.StartsWith ("commenturl", StringComparison.InvariantCultureIgnoreCase)) { if (cookie != null)