[Modify] Throw exception

This commit is contained in:
sta 2018-09-25 19:37:32 +09:00
parent 898ff1b24b
commit 74bb695fa0

View File

@ -1269,7 +1269,7 @@ namespace WebSocketSharp.Net
public static byte[] UrlEncodeToBytes (string s, Encoding encoding)
{
if (s == null)
return null;
throw new ArgumentNullException ("s");
if (s.Length == 0)
return new byte[0];