|
|
|
@ -1236,9 +1236,7 @@ namespace WebSocketSharp.Net
|
|
|
|
throw new ArgumentNullException ("bytes");
|
|
|
|
throw new ArgumentNullException ("bytes");
|
|
|
|
|
|
|
|
|
|
|
|
var len = bytes.Length;
|
|
|
|
var len = bytes.Length;
|
|
|
|
return len > 0
|
|
|
|
return len > 0 ? urlEncodeToBytes (bytes, 0, len) : bytes;
|
|
|
|
? InternalUrlEncodeToBytes (bytes, 0, len)
|
|
|
|
|
|
|
|
: bytes;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static byte[] UrlEncodeToBytes (byte[] bytes, int offset, int count)
|
|
|
|
public static byte[] UrlEncodeToBytes (byte[] bytes, int offset, int count)
|
|
|
|
|