From 18747d5345b8a073a24866c38830b5312b494966 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 22 Sep 2018 20:40:52 +0900 Subject: [PATCH] [Modify] Throw exception --- websocket-sharp/Net/HttpUtility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index 0d207d77..9372d683 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -1165,7 +1165,7 @@ namespace WebSocketSharp.Net public static string UrlEncode (byte[] bytes) { if (bytes == null) - return null; + throw new ArgumentNullException ("bytes"); var len = bytes.Length; return len > 0