From d20dbcb74afe7517a18ab31b0008b5f9eea0af97 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 7 Feb 2022 19:37:27 +0000 Subject: [PATCH] cosmetics --- .../CoreModules/World/Estate/EstateConnector.cs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateConnector.cs b/OpenSim/Region/CoreModules/World/Estate/EstateConnector.cs index db7d289102..9c494685b7 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateConnector.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateConnector.cs @@ -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");