[Modify] Throw exception

This commit is contained in:
sta 2018-09-22 20:40:52 +09:00
parent 503767d31e
commit 18747d5345

View File

@ -1165,7 +1165,7 @@ namespace WebSocketSharp.Net
public static string UrlEncode (byte[] bytes) public static string UrlEncode (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