From 70efa042176d2dd1c49f9f00a6e5b9452bbc9de6 Mon Sep 17 00:00:00 2001
From: onefang
Date: Tue, 13 Aug 2019 07:35:50 +1000
Subject: Beef up the web server a bit.

Sanatize the path.

Add support for Last-Modified, If-Modified-Since, and Cache-Control:
no-cache.

Teach the base server about more binary content types.
---
 OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'OpenSim/Framework/Servers/HttpServer')

diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index c53c0ce..26694b5 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -1840,6 +1840,10 @@ namespace OpenSim.Framework.Servers.HttpServer
             {
                 if (!(contentType.Contains("image")
                     || contentType.Contains("x-shockwave-flash")
+                    || contentType.Contains("application/gzip")
+                    || contentType.Contains("application/pdf")
+                    || contentType.Contains("application/zip")
+                    || contentType.Contains("application/x-xz")
                     || contentType.Contains("application/x-oar")
                     || contentType.Contains("application/vnd.ll.mesh")))
                 {
-- 
cgit v1.1