mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Also fix test to not use a bucket name with a leading slash - this causes the bucket name to become empty and go to an unintended API call (listbuckets).
This commit is contained in:
committed by
Harshavardhana
parent
61d67a061c
commit
2f43709f85
@@ -77,8 +77,9 @@ func newObjectLayer(storageDisks []StorageAPI) (ObjectLayer, error) {
|
||||
|
||||
// configureServer handler returns final handler for the http server.
|
||||
func configureServerHandler(srvCmdConfig serverCmdConfig) (http.Handler, error) {
|
||||
// Initialize router.
|
||||
mux := router.NewRouter()
|
||||
// Initialize router. `SkipClean(true)` stops gorilla/mux from
|
||||
// normalizing URL path minio/minio#3256
|
||||
mux := router.NewRouter().SkipClean(true)
|
||||
|
||||
// Initialize distributed NS lock.
|
||||
if globalIsDistXL {
|
||||
|
||||
Reference in New Issue
Block a user