[Modify] Replace it
This commit is contained in:
parent
ea92e7f7ad
commit
f7acef9cc1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user