* 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.

0.6.4-rc1
Teravus Ovares 2009-03-07 06:14:31 +00:00
parent 03076b0d33
commit 5b8c925641
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}