changes on agenthandlers: simplify HG only agentposthandler, etc

This commit is contained in:
UbitUmarov
2020-12-23 15:36:51 +00:00
parent d0ade39641
commit 3732677972
7 changed files with 62 additions and 238 deletions

View File

@@ -59,7 +59,7 @@ namespace OpenSim.Server.Handlers.Simulation
if (m_SimulationService == null)
{
httpResponse.StatusCode = (int)HttpStatusCode.InternalServerError;
httpResponse.RawBuffer = Util.UTF8.GetBytes("false");
httpResponse.RawBuffer = Utils.falseStrBytes;
return;
}
@@ -76,11 +76,11 @@ namespace OpenSim.Server.Handlers.Simulation
{
case "POST":
{
OSDMap args = Utils.DeserializeOSMap(httpRequest);
OSDMap args = Utils.DeserializeJSONOSMap(httpRequest);
if (args == null)
{
httpResponse.StatusCode = (int)HttpStatusCode.BadRequest;
httpResponse.RawBuffer = Util.UTF8.GetBytes("false");
httpResponse.RawBuffer = Utils.falseStrBytes;
return;
}
DoObjectPost(args, httpResponse);