Skip to content

Commit

Permalink
Don't use 'Indented' formatting for RpcXml responses.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlericInglewood committed Aug 4, 2013
1 parent 4ff9fbc commit 93abcde
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
Expand Up @@ -1056,7 +1056,21 @@ string errorMessage
}

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
{
Expand Down

0 comments on commit 93abcde

Please sign in to comment.