[Modify] Throw exception
This commit is contained in:
parent
c708209d88
commit
59f51380a6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user