removed redirect slashes and changed to stripslashses (#3170)

This commit is contained in:
Eoin McAfee 2021-12-17 14:36:36 +00:00 committed by GitHub
parent f67ec3cc50
commit ee99e86b2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ func (s Server) Handler() http.Handler {
r.Use(middleware.Recoverer)
r.Use(middleware.NoCache)
r.Use(logger.Middleware)
r.Use(middleware.RedirectSlashes)
r.Use(middleware.StripSlashes)
sec := secure.New(s.Options)
r.Use(sec.Handler)