[Modify] Throw exception

This commit is contained in:
sta 2018-09-24 21:10:36 +09:00
parent 17b1b861cd
commit a42611e27d

View File

@ -1229,7 +1229,7 @@ namespace WebSocketSharp.Net
public static byte[] UrlEncodeToBytes (byte[] bytes)
{
if (bytes == null)
return null;
throw new ArgumentNullException ("bytes");
var len = bytes.Length;
return len > 0