mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
handlers: Avoid initializing a struct in each handler call (#11217)
This commit is contained in:
+1
-1
@@ -271,7 +271,7 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
|
||||
registerAPIRouter(router)
|
||||
|
||||
// Use all the middlewares
|
||||
router.Use(registerMiddlewares)
|
||||
router.Use(globalHandlers...)
|
||||
|
||||
var getCert certs.GetCertificateFunc
|
||||
if globalTLSCerts != nil {
|
||||
|
||||
Reference in New Issue
Block a user