[Modify] Replace it
This commit is contained in:
parent
7658875c6d
commit
ea92e7f7ad
@ -1227,9 +1227,7 @@ namespace WebSocketSharp.Net
|
|||||||
var bytes = new byte[encoding.GetMaxByteCount (len)];
|
var bytes = new byte[encoding.GetMaxByteCount (len)];
|
||||||
var realLen = encoding.GetBytes (s, 0, len, bytes, 0);
|
var realLen = encoding.GetBytes (s, 0, len, bytes, 0);
|
||||||
|
|
||||||
return Encoding.ASCII.GetString (
|
return Encoding.ASCII.GetString (urlEncodeToBytes (bytes, 0, realLen));
|
||||||
InternalUrlEncodeToBytes (bytes, 0, realLen)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static byte[] UrlEncodeToBytes (byte[] bytes)
|
public static byte[] UrlEncodeToBytes (byte[] bytes)
|
||||||
|
Loading…
Reference in New Issue
Block a user