* 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.
parent
03076b0d33
commit
5b8c925641
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue