remove end slash from most URLs we send to viewers

This commit is contained in:
UbitUmarov
2020-05-10 21:14:52 +01:00
parent c1d69018bd
commit aafc6579a1
12 changed files with 41 additions and 24 deletions

View File

@@ -672,10 +672,7 @@ namespace OpenSim.Framework.Servers.HttpServer
return;
}
// workaround for Lumiya and others that append a extra /
int len = path.Length - 1;
if (len > 1 && path[len] == '/' && path[len - 1] == '/')
path = path.Substring(0, len);
path = Util.TrimEndSlash(path);
if (TryGetSimpleStreamHandler(path, out ISimpleStreamHandler hdr))
{