mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
changes on agenthandlers: simplify HG only agentposthandler, etc
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user