[Modify] Throw exception
This commit is contained in:
parent
03f10fff42
commit
b922bd7cbd
@ -1160,7 +1160,7 @@ namespace WebSocketSharp.Net
|
||||
public static byte[] UrlDecodeToBytes (string s, Encoding encoding)
|
||||
{
|
||||
if (s == null)
|
||||
return null;
|
||||
throw new ArgumentNullException ("s");
|
||||
|
||||
if (s.Length == 0)
|
||||
return new byte[0];
|
||||
|
Loading…
Reference in New Issue
Block a user