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:
commit
d67c10eeb6
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue