[Modify] Throw exception
This commit is contained in:
parent
898ff1b24b
commit
74bb695fa0
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user