mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Use const slashSeparator instead of "/" everywhere (#8028)
This commit is contained in:
@@ -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