|
|
|
@ -1239,13 +1239,9 @@ namespace WebSocketSharp.Net
|
|
|
|
|
|
|
|
|
|
|
|
public static byte[] UrlEncodeToBytes (byte[] bytes, int offset, int count)
|
|
|
|
public static byte[] UrlEncodeToBytes (byte[] bytes, int offset, int count)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (bytes == null) {
|
|
|
|
if (bytes == null)
|
|
|
|
if (count != 0)
|
|
|
|
|
|
|
|
throw new ArgumentNullException ("bytes");
|
|
|
|
throw new ArgumentNullException ("bytes");
|
|
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var len = bytes.Length;
|
|
|
|
var len = bytes.Length;
|
|
|
|
if (len == 0) {
|
|
|
|
if (len == 0) {
|
|
|
|
if (offset != 0 || count != 0)
|
|
|
|
if (offset != 0 || count != 0)
|
|
|
|
|