Fixed bug in HG that was causing secondlife:// refs to bomb the client.

Also fiddled a bit more with the initial CAP in the user server.
This commit is contained in:
Diva Canto
2009-09-28 20:58:21 -07:00
parent 95981776dd
commit 6653a30487
2 changed files with 13 additions and 4 deletions

View File

@@ -279,9 +279,8 @@ namespace OpenSim.Grid.UserServer.Modules
//response.SeedCapability = serverURI + CapsUtil.GetCapsSeedPath(capsPath);
// Take off trailing / so that the caps path isn't //CAPS/someUUID
if (regionInfo.httpServerURI.EndsWith("/"))
regionInfo.httpServerURI = regionInfo.httpServerURI.Substring(0, regionInfo.httpServerURI.Length - 1);
response.SeedCapability = regionInfo.httpServerURI + CapsUtil.GetCapsSeedPath(capsPath);
string uri = regionInfo.httpServerURI.Trim(new char[] { '/' });
response.SeedCapability = uri + CapsUtil.GetCapsSeedPath(capsPath);
// Notify the target of an incoming user