mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
remove end slash from most URLs we send to viewers
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user