From cd42cdcc899de30f72727c6845a4d173f2d9cc8a Mon Sep 17 00:00:00 2001 From: Marck Date: Sat, 11 Sep 2010 11:59:07 +0200 Subject: 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(-) (limited to 'OpenSim/Framework/Console') diff --git a/OpenSim/Framework/Console/RemoteConsole.cs b/OpenSim/Framework/Console/RemoteConsole.cs index c038aac..7eb289b 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; } -- cgit v1.1