[Modify] Replace it

This commit is contained in:
sta 2018-11-08 20:01:21 +09:00
parent f7acef9cc1
commit f04b04ac4c

View File

@ -1261,9 +1261,7 @@ namespace WebSocketSharp.Net
if (count < 0 || count > len - offset) if (count < 0 || count > len - offset)
throw new ArgumentOutOfRangeException ("count"); throw new ArgumentOutOfRangeException ("count");
return count > 0 return count > 0 ? urlEncodeToBytes (bytes, offset, count) : new byte[0];
? InternalUrlEncodeToBytes (bytes, offset, count)
: new byte[0];
} }
public static byte[] UrlEncodeToBytes (string s) public static byte[] UrlEncodeToBytes (string s)