Merge pull request #3099 from drone/defect/dron-91-url-slashes

Add middleware function redirect slashes to fix trailing slash in url.
This commit is contained in:
Eoin McAfee 2021-07-01 16:54:26 +01:00 committed by GitHub
commit d67c10eeb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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