mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
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:
committed by
Justin Clark-Casey (justincc)
parent
2501372d3b
commit
cd42cdcc89
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user