From 4f48f357a590fc766d7e6e26723868b82e6aeac5 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 11 Oct 2018 20:27:02 +0900 Subject: [PATCH] [Modify] Add it --- websocket-sharp/Net/HttpUtility.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index 6cadb748..24d7f0f2 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -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) {