Skip to content

Commit a42611e

Browse files
committed
[Modify] Throw exception
1 parent 17b1b86 commit a42611e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

websocket-sharp/Net/HttpUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ public static string UrlEncode (string s, Encoding encoding)
12291229
public static byte[] UrlEncodeToBytes (byte[] bytes)
12301230
{
12311231
if (bytes == null)
1232-
return null;
1232+
throw new ArgumentNullException ("bytes");
12331233

12341234
var len = bytes.Length;
12351235
return len > 0

0 commit comments

Comments
 (0)