From 5b8c92564163609b4f8a4118f9586f3a7dfe8b40 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 7 Mar 2009 06:14:31 +0000 Subject: [PATCH] * Adding application/x-oar to the list of content types to which the HTTP Server will return the response as if it was a binary file pending discussion on the [opensim-dev] mailing list to be initiated by dmiles. --- OpenSim/Framework/Servers/BaseHttpServer.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index d6f0630fc8..361f895d26 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs @@ -1267,12 +1267,16 @@ namespace OpenSim.Framework.Servers byte[] buffer; - if (!(contentType.Contains("image") || contentType.Contains("x-shockwave-flash"))) + if (!(contentType.Contains("image") + || contentType.Contains("x-shockwave-flash") + || contentType.Contains("application/x-oar"))) { + // Text buffer = Encoding.UTF8.GetBytes(responseString); } else { + // Binary! buffer = Convert.FromBase64String(responseString); }