[Modify] Throw exception

This commit is contained in:
sta 2018-12-12 20:19:15 +09:00
parent c708209d88
commit 59f51380a6

View File

@ -945,7 +945,10 @@ namespace WebSocketSharp.Net
public static string UrlDecode (string s, Encoding encoding)
{
if (s == null || s.Length == 0 || !s.Contains ('%', '+'))
if (s == null)
throw new ArgumentNullException ("s");
if (s.Length == 0)
return s;
if (encoding == null)