[Modify] Throw exception
This commit is contained in:
parent
17b1b861cd
commit
a42611e27d
@ -1229,7 +1229,7 @@ namespace WebSocketSharp.Net
|
|||||||
public static byte[] UrlEncodeToBytes (byte[] bytes)
|
public static byte[] UrlEncodeToBytes (byte[] bytes)
|
||||||
{
|
{
|
||||||
if (bytes == null)
|
if (bytes == null)
|
||||||
return null;
|
throw new ArgumentNullException ("bytes");
|
||||||
|
|
||||||
var len = bytes.Length;
|
var len = bytes.Length;
|
||||||
return len > 0
|
return len > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user