Skip to content

Commit b595461

Browse files
authored
Merge pull request opencloud-eu#1995 from opencloud-eu/enforce-server-url-trailing-slash
fix: enforce trailing slash for server url
2 parents a3a1397 + 614d916 commit b595461

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

services/web/pkg/service/v0/service.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ func (p Web) getPayload() (payload []byte, err error) {
136136
p.config.Web.Config.Apps = make([]string, 0)
137137
}
138138

139+
// ensure that the server url has a trailing slash
140+
p.config.Web.Config.Server = strings.TrimRight(p.config.Web.Config.Server, "/") + "/"
141+
139142
return json.Marshal(p.config.Web.Config)
140143
}
141144

0 commit comments

Comments
 (0)