From 10988fe9800e63b53c2851b1bbb994a973e2943b Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 23 Apr 2020 18:29:45 +0100 Subject: [PATCH] exclude root path from SimpleStremHandler --- OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index 36801a2647..cf3371f855 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs @@ -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)