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