Prevent double slashes, try #3

avinationmerge
Melanie 2012-09-06 17:39:30 +02:00
parent 3257f4d5d2
commit ac6448810e
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,9 @@ namespace OpenSim.Services.Connectors
// m_log.DebugFormat("[ASSET]: Using {0} for host name for prefix {1}", host, prefix); // m_log.DebugFormat("[ASSET]: Using {0} for host name for prefix {1}", host, prefix);
string ret = serverUri.Uri.AbsoluteUri;
if (ret.EndsWith("/"))
ret = ret.Substring(0, ret.Length - 1);
return serverUri.Uri.AbsoluteUri; return serverUri.Uri.AbsoluteUri;
} }