Skip to content

Commit de7a4e9

Browse files
authored
Subpath handling for Gotify (#533) (#875)
1 parent 9216661 commit de7a4e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

router/router.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
func Create(db *database.GormDatabase, vInfo *model.VersionInfo, conf *config.Configuration) (*gin.Engine, func()) {
2828
g := gin.New()
2929

30+
g.RemoveExtraSlash = true
3031
g.RemoteIPHeaders = []string{"X-Forwarded-For"}
3132
g.SetTrustedProxies(conf.Server.TrustedProxies)
3233
g.ForwardedByClientIP = true

0 commit comments

Comments
 (0)