From 04d73de2cc98e637b9ad2e32851dc4ce020826bf Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 11 Jul 2017 17:15:31 +0900 Subject: [PATCH] [Modify] Trim it --- websocket-sharp/Server/HttpServer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/websocket-sharp/Server/HttpServer.cs b/websocket-sharp/Server/HttpServer.cs index a82d1763..281c3336 100644 --- a/websocket-sharp/Server/HttpServer.cs +++ b/websocket-sharp/Server/HttpServer.cs @@ -419,6 +419,7 @@ namespace WebSocketSharp.Server if (full == "/") throw new ArgumentException ("An absolute root.", "value"); + full = full.TrimSlashOrBackslashFromEnd (); if (full.Length == 2 && full[1] == ':') throw new ArgumentException ("An absolute root.", "value");