mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Pass location in MakeBucketWithLocation call (#5605)
fixes regression for gateways
This commit is contained in:
parent
27258b9c54
commit
247c1bb5ef
@ -412,7 +412,7 @@ func (api objectAPIHandlers) PutBucketHandler(w http.ResponseWriter, r *http.Req
|
||||
defer bucketLock.Unlock()
|
||||
|
||||
// Proceed to creating a bucket.
|
||||
err := objectAPI.MakeBucketWithLocation(bucket, "")
|
||||
err := objectAPI.MakeBucketWithLocation(bucket, location)
|
||||
if err != nil {
|
||||
writeErrorResponse(w, toAPIErrorCode(err), r.URL)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user