[Modify] Add it
This commit is contained in:
parent
79d8f4a684
commit
4f48f357a5
@ -518,6 +518,17 @@ namespace WebSocketSharp.Net
|
||||
|| c == '~';
|
||||
}
|
||||
|
||||
private static void urlDecode (byte[] bytes, int offset, Stream output)
|
||||
{
|
||||
var num = getNumber (bytes, offset + 1, 2);
|
||||
if (num == -1) {
|
||||
output.Write (bytes, offset, 3);
|
||||
return;
|
||||
}
|
||||
|
||||
output.WriteByte ((byte) num);
|
||||
}
|
||||
|
||||
private static void urlEncode (byte b, Stream output)
|
||||
{
|
||||
if (b > 31 && b < 127) {
|
||||
|
Loading…
Reference in New Issue
Block a user