From c53ec8dc08af0189da65e645b0d9dceb5a032f26 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 8 Dec 2018 18:22:01 +0900 Subject: [PATCH] [Modify] Add it --- websocket-sharp/Net/QueryStringCollection.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/websocket-sharp/Net/QueryStringCollection.cs b/websocket-sharp/Net/QueryStringCollection.cs index fd26b29f..0cc2f047 100644 --- a/websocket-sharp/Net/QueryStringCollection.cs +++ b/websocket-sharp/Net/QueryStringCollection.cs @@ -61,6 +61,17 @@ namespace WebSocketSharp.Net #endregion + #region Private Methods + + private static string urlDecode (string s, Encoding encoding) + { + return s.IndexOfAny (new[] { '%', '+' }) > -1 + ? HttpUtility.UrlDecode (s, encoding) + : s; + } + + #endregion + #region Public Methods public static QueryStringCollection Parse (string query)