Pass location in MakeBucketWithLocation call (#5605)

fixes regression for gateways
This commit is contained in:
poornas
2018-03-08 12:56:20 +05:30
committed by Nitish Tiwari
parent 27258b9c54
commit 247c1bb5ef
+1 -1
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