fix: fixes the s3 access logs and metrics manager reporting. Fixes the default cotext keys setter order in the middlewares.

This commit is contained in:
niksis02
2025-07-22 20:55:22 +04:00
parent 5be9e3bd1e
commit 65cd44aadd
2 changed files with 15 additions and 12 deletions
+3 -3
View File
@@ -78,6 +78,9 @@ func New(
})
}
// initilaze the default value setter middleware
app.Use(middlewares.SetDefaultValues(root, region))
// initialize the 'DecodeURL' middleware which
// path unescapes the url
app.Use(controllers.WrapMiddleware(middlewares.DecodeURL, l, mm))
@@ -87,9 +90,6 @@ func New(
app.Use(middlewares.HostStyleParser(server.virtualDomain))
}
// initilaze the default value setter middleware
app.Use(middlewares.SetDefaultValues(root, region))
// initialize the debug logger in debug mode
if server.debug {
app.Use(middlewares.DebugLogger())