From be55a3112d6262aec89ee9863dfc211545237efa Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 5 Jun 2016 16:51:09 +0900 Subject: [PATCH] [Fix] Don't remove the end slash --- websocket-sharp/Net/HttpListenerPrefix.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/websocket-sharp/Net/HttpListenerPrefix.cs b/websocket-sharp/Net/HttpListenerPrefix.cs index c8847033..eefa9566 100644 --- a/websocket-sharp/Net/HttpListenerPrefix.cs +++ b/websocket-sharp/Net/HttpListenerPrefix.cs @@ -137,9 +137,7 @@ namespace WebSocketSharp.Net _port = _secure ? "443" : "80"; } - var path = uriPrefix.Substring (root); - var pathLen = path.Length; - _path = pathLen > 1 ? path.Substring (0, pathLen - 1) : path; + _path = uriPrefix.Substring (root); } #endregion