Don't use 'Indented' formatting for RpcXml responses.

(cherry picked from commit 93abcde69043b175071e0bb752538d9730433f1d)
varregion
Aleric Inglewood 2013-08-04 19:20:10 +02:00 committed by teravus
parent 2dc92e7de1
commit 7889e7757a
1 changed files with 15 additions and 1 deletions

View File

@ -1056,7 +1056,21 @@ namespace OpenSim.Framework.Servers.HttpServer
}
response.ContentType = "text/xml";
responseString = XmlRpcResponseSerializer.Singleton.Serialize(xmlRpcResponse);
using (MemoryStream outs = new MemoryStream())
{
using (XmlTextWriter writer = new XmlTextWriter(outs, Encoding.UTF8))
{
writer.Formatting = Formatting.None;
XmlRpcResponseSerializer.Singleton.Serialize(writer, xmlRpcResponse);
writer.Flush();
outs.Flush();
outs.Position = 0;
using (StreamReader sr = new StreamReader(outs))
{
responseString = sr.ReadToEnd();
}
}
}
}
else
{