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.
This commit is contained in:
Marck
2010-09-11 11:59:07 +02:00
committed by Justin Clark-Casey (justincc)
parent 2501372d3b
commit cd42cdcc89

View File

@@ -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;
}