aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs
index d6f0630..361f895 100644
--- a/OpenSim/Framework/Servers/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/BaseHttpServer.cs
@@ -1267,12 +1267,16 @@ namespace OpenSim.Framework.Servers
1267 1267
1268 byte[] buffer; 1268 byte[] buffer;
1269 1269
1270 if (!(contentType.Contains("image") || contentType.Contains("x-shockwave-flash"))) 1270 if (!(contentType.Contains("image")
1271 || contentType.Contains("x-shockwave-flash")
1272 || contentType.Contains("application/x-oar")))
1271 { 1273 {
1274 // Text
1272 buffer = Encoding.UTF8.GetBytes(responseString); 1275 buffer = Encoding.UTF8.GetBytes(responseString);
1273 } 1276 }
1274 else 1277 else
1275 { 1278 {
1279 // Binary!
1276 buffer = Convert.FromBase64String(responseString); 1280 buffer = Convert.FromBase64String(responseString);
1277 } 1281 }
1278 1282