From 185e7048c8dc51fe0705bd26728440cf361564c7 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Thu, 22 Jan 2015 10:45:07 -0800 Subject: On the GridService, the central simulator features: ensure that the map tile url ends with '/' because the viewer is dumb and just appends to it. --- OpenSim/Services/GridService/GridService.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'OpenSim/Services/GridService/GridService.cs') diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index 3b1a07e..af7a511 100644 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs @@ -164,8 +164,14 @@ namespace OpenSim.Services.GridService configVal = loginConfig.GetString("MapTileURL", string.Empty); if (!string.IsNullOrEmpty(configVal)) + { + // This URL must end with '/', the viewer doesn't check + configVal = configVal.Trim(); + if (!configVal.EndsWith("/")) + configVal = configVal + "/"; m_ExtraFeatures["map-server-url"] = configVal; - + } + configVal = loginConfig.GetString("DestinationGuide", string.Empty); if (!string.IsNullOrEmpty(configVal)) m_ExtraFeatures["destination-guide-url"] = configVal; -- cgit v1.1