diff --git a/httpd/server.go b/httpd/server.go index 6cce30e8..327fdffc 100644 --- a/httpd/server.go +++ b/httpd/server.go @@ -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)