|
|
|
@ -380,11 +380,7 @@ func (api objectAPIHandlers) PutBucketHandler(w http.ResponseWriter, r *http.Req |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// PutBucket does not have any bucket action.
|
|
|
|
|
s3Error := checkRequestAuthType(r, "", "", globalMinioDefaultRegion) |
|
|
|
|
if s3Error == ErrInvalidRegion { |
|
|
|
|
// Clients like boto3 send putBucket() call signed with region that is configured.
|
|
|
|
|
s3Error = checkRequestAuthType(r, "", "", serverConfig.GetRegion()) |
|
|
|
|
} |
|
|
|
|
s3Error := checkRequestAuthType(r, "", "", serverConfig.GetRegion()) |
|
|
|
|
if s3Error != ErrNone { |
|
|
|
|
writeErrorResponse(w, s3Error, r.URL) |
|
|
|
|
return |
|
|
|
|