Don't append / at the end of the path

This commit is contained in:
TwinProduction
2020-11-30 09:23:03 -05:00
parent 43504913b4
commit 971967ae78
2 changed files with 24 additions and 26 deletions

View File

@ -59,5 +59,5 @@ func (web *webConfig) SocketAddress() string {
// PrependWithContextRoot appends the given path to the ContextRoot
func (web *webConfig) PrependWithContextRoot(path string) string {
return web.ContextRoot + strings.Trim(path, "/") + "/"
return web.ContextRoot + strings.Trim(path, "/")
}