mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-14 23:32:45 +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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue