exclude root path from SimpleStremHandler

master
UbitUmarov 2020-04-23 18:29:45 +01:00
parent 0fe51f34c2
commit 10988fe980
1 changed files with 1 additions and 1 deletions

View File

@ -635,7 +635,7 @@ namespace OpenSim.Framework.Servers.HttpServer
// } // }
// } // }
string path = request.UriPath; 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); hdr.Handle(request, response);
if (request.InputStream != null && request.InputStream.CanRead) if (request.InputStream != null && request.InputStream.CanRead)