[Modify] Add it
This commit is contained in:
parent
4f48f357a5
commit
2a6010ee54
@ -529,6 +529,20 @@ namespace WebSocketSharp.Net
|
|||||||
output.WriteByte ((byte) num);
|
output.WriteByte ((byte) num);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void urlDecodeUnicode (
|
||||||
|
byte[] bytes, int offset, Stream output
|
||||||
|
)
|
||||||
|
{
|
||||||
|
var num = getNumber (bytes, offset + 2, 4);
|
||||||
|
if (num == -1) {
|
||||||
|
output.Write (bytes, offset, 6);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var decoded = Encoding.Unicode.GetBytes (new[] { (char) num });
|
||||||
|
output.Write (decoded, 0, decoded.Length);
|
||||||
|
}
|
||||||
|
|
||||||
private static void urlEncode (byte b, Stream output)
|
private static void urlEncode (byte b, Stream output)
|
||||||
{
|
{
|
||||||
if (b > 31 && b < 127) {
|
if (b > 31 && b < 127) {
|
||||||
|
Loading…
Reference in New Issue
Block a user