mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-25 17:10:28 +00:00
httpd: move the check connection middleware before the logger middleware
Fixes #543
This commit is contained in:
parent
6ea38188e8
commit
bf4b3e6840
1 changed files with 1 additions and 1 deletions
|
@ -868,9 +868,9 @@ func (s *httpdServer) initializeRouter() {
|
|||
s.router = chi.NewRouter()
|
||||
|
||||
s.router.Use(middleware.RequestID)
|
||||
s.router.Use(s.checkConnection)
|
||||
s.router.Use(logger.NewStructuredLogger(logger.GetLogger()))
|
||||
s.router.Use(recoverer)
|
||||
s.router.Use(s.checkConnection)
|
||||
s.router.Use(middleware.GetHead)
|
||||
s.router.Use(middleware.StripSlashes)
|
||||
|
||||
|
|
Loading…
Reference in a new issue