Prechádzať zdrojové kódy

HG: AAdded a few missing /'s at the end of URLs

Diva Canto 13 rokov pred
rodič
commit
26bb95fe3d

+ 1 - 1
OpenSim/Services/Connectors/Hypergrid/HeloServiceConnector.cs

@@ -53,7 +53,7 @@ namespace OpenSim.Services.Connectors
 
         public virtual string Helo()
         {
-            HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(m_ServerURI + "/helo");
+            HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(m_ServerURI + "/helo/");
             // Eventually we need to switch to HEAD
             /* req.Method = "HEAD"; */
 

+ 2 - 0
OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs

@@ -86,6 +86,8 @@ namespace OpenSim.Services.Connectors.SimianGrid
 
         public SimianAssetServiceConnector(string url)
         {
+            if (!url.EndsWith("/") && !url.EndsWith("="))
+                url = url + '/';
             m_serverUrl = url;
         }
 

+ 3 - 0
OpenSim/Services/Connectors/SimianGrid/SimianInventoryServiceConnector.cs

@@ -92,7 +92,10 @@ namespace OpenSim.Services.Connectors.SimianGrid
 
         public SimianInventoryServiceConnector(string url)
         {
+            if (!url.EndsWith("/") && !url.EndsWith("="))
+                url = url + '/';
             m_serverUrl = url;
+
         }
 
         public void Initialise(IConfigSource source)