aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authoronefang2019-08-13 07:35:50 +1000
committeronefang2019-08-13 07:35:50 +1000
commit70efa042176d2dd1c49f9f00a6e5b9452bbc9de6 (patch)
treed1219b7ae93e6346ae8400086ff41ffa49f4a7e4 /OpenSim/Framework
parentGodliness can be in the first name as well. (diff)
downloadopensim-SC_OLD-70efa042176d2dd1c49f9f00a6e5b9452bbc9de6.zip
opensim-SC_OLD-70efa042176d2dd1c49f9f00a6e5b9452bbc9de6.tar.gz
opensim-SC_OLD-70efa042176d2dd1c49f9f00a6e5b9452bbc9de6.tar.bz2
opensim-SC_OLD-70efa042176d2dd1c49f9f00a6e5b9452bbc9de6.tar.xz
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.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs4
1 files changed, 4 insertions, 0 deletions
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
1840 { 1840 {
1841 if (!(contentType.Contains("image") 1841 if (!(contentType.Contains("image")
1842 || contentType.Contains("x-shockwave-flash") 1842 || contentType.Contains("x-shockwave-flash")
1843 || contentType.Contains("application/gzip")
1844 || contentType.Contains("application/pdf")
1845 || contentType.Contains("application/zip")
1846 || contentType.Contains("application/x-xz")
1843 || contentType.Contains("application/x-oar") 1847 || contentType.Contains("application/x-oar")
1844 || contentType.Contains("application/vnd.ll.mesh"))) 1848 || contentType.Contains("application/vnd.ll.mesh")))
1845 { 1849 {