[Modify] Trim it

This commit is contained in:
sta 2017-07-11 17:15:31 +09:00
parent e117dd9d72
commit 04d73de2cc

View File

@ -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");