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