Skip to content

Commit fc696ab

Browse files
committed
Need to set the redirects to false as they are defaulted to true
1 parent 8c2fb25 commit fc696ab

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 = false
341+
router.RedirectFixedPath = false
340342

341343
// Normalize paths: remove trailing slashes and collapse multiple slashes
342344
router.Use(func(c *gin.Context) {

0 commit comments

Comments
 (0)