mirror of
https://github.com/minio/minio.git
synced 2025-04-20 10:37:31 -04:00
parent
b5dc4b5873
commit
4879cd73f8
@ -380,11 +380,7 @@ func (api objectAPIHandlers) PutBucketHandler(w http.ResponseWriter, r *http.Req
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PutBucket does not have any bucket action.
|
// PutBucket does not have any bucket action.
|
||||||
s3Error := checkRequestAuthType(r, "", "", globalMinioDefaultRegion)
|
s3Error := checkRequestAuthType(r, "", "", serverConfig.GetRegion())
|
||||||
if s3Error == ErrInvalidRegion {
|
|
||||||
// Clients like boto3 send putBucket() call signed with region that is configured.
|
|
||||||
s3Error = checkRequestAuthType(r, "", "", serverConfig.GetRegion())
|
|
||||||
}
|
|
||||||
if s3Error != ErrNone {
|
if s3Error != ErrNone {
|
||||||
writeErrorResponse(w, s3Error, r.URL)
|
writeErrorResponse(w, s3Error, r.URL)
|
||||||
return
|
return
|
||||||
|
@ -603,11 +603,7 @@ func (api gatewayAPIHandlers) PutBucketHandler(w http.ResponseWriter, r *http.Re
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PutBucket does not have any bucket action.
|
// PutBucket does not have any bucket action.
|
||||||
s3Error := checkRequestAuthType(r, "", "", globalMinioDefaultRegion)
|
s3Error := checkRequestAuthType(r, "", "", serverConfig.GetRegion())
|
||||||
if s3Error == ErrInvalidRegion {
|
|
||||||
// Clients like boto3 send putBucket() call signed with region that is configured.
|
|
||||||
s3Error = checkRequestAuthType(r, "", "", serverConfig.GetRegion())
|
|
||||||
}
|
|
||||||
if s3Error != ErrNone {
|
if s3Error != ErrNone {
|
||||||
writeErrorResponse(w, s3Error, r.URL)
|
writeErrorResponse(w, s3Error, r.URL)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user