cosmetics

This commit is contained in:
UbitUmarov
2022-02-07 19:37:27 +00:00
parent 16b106821d
commit d20dbcb74a

View File

@@ -190,25 +190,21 @@ namespace OpenSim.Region.CoreModules.World.Estate
// m_log.DebugFormat("[XESTATE CONNECTOR]: queryString = {0}", reqString);
try
{
string url = "";
//string url = "";
//if(region.HttpPort != 0)
// url = "http://" + region.ExternalHostName + ":" + region.HttpPort + "/";
//else
url = region.ServerURI;
// url = region.ServerURI;
string reply = SynchronousRestFormsRequester.MakeRequest("POST",
url + "estate",
// url + "estate",
region.ServerURI + "estate",
reqString);
if (reply != string.Empty)
if (!string.IsNullOrEmpty(reply))
{
if (reply != string.Empty)
{
int indx = reply.IndexOf("true", StringComparison.InvariantCultureIgnoreCase);
if (indx > 0)
return true;
return false;
}
return indx > 0;
}
else
m_log.DebugFormat("[XESTATE CONNECTOR]: received empty reply");