aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseHttpServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Servers/BaseHttpServer.cs')
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs
index a69cb63..22698d0 100644
--- a/OpenSim/Framework/Servers/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/BaseHttpServer.cs
@@ -641,8 +641,17 @@ namespace OpenSim.Framework.Servers
641 } 641 }
642 642
643 response.AddHeader("Content-type", contentType); 643 response.AddHeader("Content-type", contentType);
644
645 byte[] buffer;
644 646
645 byte[] buffer = Encoding.UTF8.GetBytes(responseString); 647 if (!contentType.Contains("image"))
648 {
649 buffer = Encoding.UTF8.GetBytes(responseString);
650 }
651 else
652 {
653 buffer = Convert.FromBase64String(responseString);
654 }
646 655
647 response.SendChunked = false; 656 response.SendChunked = false;
648 response.ContentLength64 = buffer.Length; 657 response.ContentLength64 = buffer.Length;