Remove trailing slashes from appservice url

This commit is contained in:
Andrew Morgan 2018-07-12 15:59:23 +01:00
parent d4b24462d1
commit 5fdcc5e77e

View file

@ -188,6 +188,11 @@ func checkErrors(config *Dendrite) (err error) {
}
}
// Check if the url has trailing /'s. If so, remove them
for strings.HasSuffix(appservice.URL, "/") {
appservice.URL = strings.TrimSuffix(appservice.URL, "/")
}
// Check if we've already seen this ID. No two application services
// can have the same ID or token.
if idMap[appservice.ID] {