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