|
|
|
@ -1133,12 +1133,13 @@ namespace WebSocketSharp.Net
|
|
|
|
|
|
|
|
|
|
|
|
public static string UrlDecode (byte[] bytes, Encoding encoding)
|
|
|
|
public static string UrlDecode (byte[] bytes, Encoding encoding)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int len;
|
|
|
|
if (bytes == null)
|
|
|
|
return bytes == null
|
|
|
|
throw new ArgumentNullException ("bytes");
|
|
|
|
? null
|
|
|
|
|
|
|
|
: (len = bytes.Length) == 0
|
|
|
|
var len = bytes.Length;
|
|
|
|
? String.Empty
|
|
|
|
return len > 0
|
|
|
|
: InternalUrlDecode (bytes, 0, len, encoding ?? Encoding.UTF8);
|
|
|
|
? InternalUrlDecode (bytes, 0, len, encoding ?? Encoding.UTF8)
|
|
|
|
|
|
|
|
: String.Empty;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static string UrlDecode (
|
|
|
|
public static string UrlDecode (
|
|
|
|
|