aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs16
1 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index c4e569d..76b4257 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -1056,7 +1056,21 @@ namespace OpenSim.Framework.Servers.HttpServer
1056 } 1056 }
1057 1057
1058 response.ContentType = "text/xml"; 1058 response.ContentType = "text/xml";
1059 responseString = XmlRpcResponseSerializer.Singleton.Serialize(xmlRpcResponse); 1059 using (MemoryStream outs = new MemoryStream())
1060 {
1061 using (XmlTextWriter writer = new XmlTextWriter(outs, Encoding.UTF8))
1062 {
1063 writer.Formatting = Formatting.None;
1064 XmlRpcResponseSerializer.Singleton.Serialize(writer, xmlRpcResponse);
1065 writer.Flush();
1066 outs.Flush();
1067 outs.Position = 0;
1068 using (StreamReader sr = new StreamReader(outs))
1069 {
1070 responseString = sr.ReadToEnd();
1071 }
1072 }
1073 }
1060 } 1074 }
1061 else 1075 else
1062 { 1076 {