From a73ff3f34f4d9eb43ceb094c7485f910ba9a25a2 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Mon, 22 Aug 2022 14:28:41 -0600 Subject: [PATCH] Removing trailing slash middleware --- server/server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/server.go b/server/server.go index 5bcb2a0..6123ea7 100644 --- a/server/server.go +++ b/server/server.go @@ -283,9 +283,9 @@ func (s *Server) WithDefaultMiddleware() *Server { if s.Session == nil { panic(fmt.Errorf("You must call Initialize before WithDefaultMiddleware")) } - s.e.Pre(middleware.RemoveTrailingSlashWithConfig(middleware.TrailingSlashConfig{ - RedirectCode: http.StatusMovedPermanently, - })) + //s.e.Pre(middleware.RemoveTrailingSlashWithConfig(middleware.TrailingSlashConfig{ + // RedirectCode: http.StatusMovedPermanently, + //})) // Set custom context s.e.Use(func(next echo.HandlerFunc) echo.HandlerFunc { return func(c echo.Context) error { -- 2.45.2