mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
on simple cases no need to parse at all
This commit is contained in:
@@ -199,20 +199,16 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||
string reply = SynchronousRestFormsRequester.MakeRequest("POST",
|
||||
url + "estate",
|
||||
reqString);
|
||||
|
||||
if (reply != string.Empty)
|
||||
{
|
||||
Dictionary<string, object> replyData = ServerUtils.ParseXmlResponse(reply);
|
||||
|
||||
if (replyData.ContainsKey("RESULT"))
|
||||
if (reply != string.Empty)
|
||||
{
|
||||
if (replyData["RESULT"].ToString().ToLower() == "true")
|
||||
int indx = reply.IndexOf("true", StringComparison.InvariantCultureIgnoreCase);
|
||||
if (indx > 0)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
m_log.DebugFormat("[XESTATE CONNECTOR]: reply data does not contain result field");
|
||||
|
||||
}
|
||||
else
|
||||
m_log.DebugFormat("[XESTATE CONNECTOR]: received empty reply");
|
||||
|
||||
Reference in New Issue
Block a user