Pass location in MakeBucketWithLocation call (#5605)

fixes regression for gateways
This commit is contained in:
poornas 2018-03-07 23:26:20 -08:00 committed by Nitish Tiwari
parent 27258b9c54
commit 247c1bb5ef

View File

@ -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