From 74bb695fa058319dd5eb71595b1075cd1b7014c3 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 25 Sep 2018 19:37:32 +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 89533173..7a5de1c7 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -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];