From 8211e215cd2ee3a372f2c8d5b7dcbeae1257432d Mon Sep 17 00:00:00 2001 From: Marck Date: Sat, 11 Sep 2010 11:59:07 +0200 Subject: [PATCH] REST Console delivers responses with content type text/xml instead of text/plain. Non-error responses to requests SessionCommand and CloseSession should use the appropriate content type for their XML data payload. --- OpenSim/Framework/Console/RemoteConsole.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Framework/Console/RemoteConsole.cs b/OpenSim/Framework/Console/RemoteConsole.cs index c038aaca5c..7eb289ba72 100644 --- a/OpenSim/Framework/Console/RemoteConsole.cs +++ b/OpenSim/Framework/Console/RemoteConsole.cs @@ -288,7 +288,7 @@ namespace OpenSim.Framework.Console reply["str_response_string"] = xmldoc.InnerXml; reply["int_response_code"] = 200; - reply["content_type"] = "text/plain"; + reply["content_type"] = "text/xml"; return reply; } @@ -343,7 +343,7 @@ namespace OpenSim.Framework.Console reply["str_response_string"] = xmldoc.InnerXml; reply["int_response_code"] = 200; - reply["content_type"] = "text/plain"; + reply["content_type"] = "text/xml"; return reply; }