From 3989809d430e3030dd8ac94468dbaad1e1c5c145 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 14 Sep 2018 19:48:27 +0900 Subject: [PATCH] [Modify] Add it --- websocket-sharp/Net/HttpUtility.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index 732e8a6b..44ce18b1 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -415,6 +415,14 @@ namespace WebSocketSharp.Net return c >= '0' && c <= '9'; } + private static bool isUnreserved (byte b) + { + return b == 42 + || b == 45 + || b == 46 + || b == 95; + } + private static bool isUnreserved (char c) { return c == '*'