exclude root path from SimpleStremHandler

This commit is contained in:
UbitUmarov
2020-04-23 18:29:45 +01:00
parent 0fe51f34c2
commit 10988fe980

View File

@@ -635,7 +635,7 @@ namespace OpenSim.Framework.Servers.HttpServer
// }
// }
string path = request.UriPath;
if (!string.IsNullOrWhiteSpace(path) && TryGetSimpleStreamHandler(path, out ISimpleStreamHandler hdr))
if (!string.IsNullOrWhiteSpace(path) && path!="/" && TryGetSimpleStreamHandler(path, out ISimpleStreamHandler hdr))
{
hdr.Handle(request, response);
if (request.InputStream != null && request.InputStream.CanRead)