mirror of
https://github.com/pgsty/minio.git
synced 2026-10-08 18:55:58 +03:00
Use const slashSeparator instead of "/" everywhere (#8028)
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ func registerSTSRouter(router *mux.Router) {
|
||||
sts := &stsAPIHandlers{}
|
||||
|
||||
// STS Router
|
||||
stsRouter := router.NewRoute().PathPrefix("/").Subrouter()
|
||||
stsRouter := router.NewRoute().PathPrefix(SlashSeparator).Subrouter()
|
||||
|
||||
// Assume roles with no JWT, handles AssumeRole.
|
||||
stsRouter.Methods(http.MethodPost).MatcherFunc(func(r *http.Request, rm *mux.RouteMatch) bool {
|
||||
|
||||
Reference in New Issue
Block a user