[Modify] Add it

This commit is contained in:
sta 2018-10-11 20:27:02 +09:00
parent 79d8f4a684
commit 4f48f357a5

View File

@ -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) {