Skip to content

Commit 692956f

Browse files
author
Elisamuel Resto
committed
An attempt to relax Gin's URI matching -- causing issues with Wavelog
1 parent cc45aa2 commit 692956f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ func initializeDXClusters(ctx context.Context, cfg *config.Config) ([]*cluster.C
337337
func setupHTTPRouter(cfg *config.Config) *gin.Engine {
338338
gin.SetMode(gin.ReleaseMode)
339339
router := gin.New()
340+
router.RedirectTrailingSlash = true
341+
router.RedirectFixedPath = true
340342
router.Use(logging.GinRecovery())
341343
router.Use(logging.GinLogger())
342344

0 commit comments

Comments
 (0)