mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
cosmetics
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user