fix: enforce trailing slash for server url (#2002)

(cherry picked from commit 614d916978)
This commit is contained in:
Benedikt Kulmann
2025-12-11 10:52:20 +01:00
committed by GitHub
parent 80cf0ba72c
commit 4962328f0c

View File

@@ -136,6 +136,9 @@ func (p Web) getPayload() (payload []byte, err error) {
p.config.Web.Config.Apps = make([]string, 0)
}
// ensure that the server url has a trailing slash
p.config.Web.Config.Server = strings.TrimRight(p.config.Web.Config.Server, "/") + "/"
return json.Marshal(p.config.Web.Config)
}