mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-29 15:11:33 +00:00
Remove trailing slashes from appservice url (#546)
* Remove trailing slashes from appservice url * Use TrimRight instead
This commit is contained in:
parent
49b63089f5
commit
3ac23f9063
@ -236,6 +236,9 @@ func checkErrors(config *Dendrite) (err error) {
|
||||
}
|
||||
}
|
||||
|
||||
// Check if the url has trailing /'s. If so, remove them
|
||||
appservice.URL = strings.TrimRight(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] {
|
||||
|
Loading…
Reference in New Issue
Block a user