Pass location in MakeBucketWithLocation call (#5605)

fixes regression for gateways
master
poornas 7 years ago committed by Nitish Tiwari
parent 27258b9c54
commit 247c1bb5ef
  1. 2
      cmd/bucket-handlers.go

@ -412,7 +412,7 @@ func (api objectAPIHandlers) PutBucketHandler(w http.ResponseWriter, r *http.Req
defer bucketLock.Unlock() defer bucketLock.Unlock()
// Proceed to creating a bucket. // Proceed to creating a bucket.
err := objectAPI.MakeBucketWithLocation(bucket, "") err := objectAPI.MakeBucketWithLocation(bucket, location)
if err != nil { if err != nil {
writeErrorResponse(w, toAPIErrorCode(err), r.URL) writeErrorResponse(w, toAPIErrorCode(err), r.URL)
return return

Loading…
Cancel
Save