Remove trailing slashes from appservice url (#546)
* Remove trailing slashes from appservice url * Use TrimRight insteadmain
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
|
// 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 New Issue