mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-14 18:33:09 -06:00
Remove trailing slashes from appservice url
This commit is contained in:
parent
d4b24462d1
commit
5fdcc5e77e
|
|
@ -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
|
// Check if we've already seen this ID. No two application services
|
||||||
// can have the same ID or token.
|
// can have the same ID or token.
|
||||||
if idMap[appservice.ID] {
|
if idMap[appservice.ID] {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue