fixes regression for gateways
@ -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