mirror of
https://github.com/minio/minio.git
synced 2025-11-23 11:07:50 -05:00
Cleanup and update the PR with the master branch.
This commit is contained in:
committed by
Harshavardhana
parent
a76556ec1b
commit
0dab038858
@@ -657,10 +657,7 @@ func (api gatewayAPIHandlers) PutBucketHandler(w http.ResponseWriter, r *http.Re
|
||||
// reads body which has been read already. So only validating
|
||||
// region here.
|
||||
serverRegion := serverConfig.GetRegion()
|
||||
if serverRegion == "" {
|
||||
// we will only validate the region
|
||||
// when the region has been explicitely set
|
||||
} else if serverRegion != location {
|
||||
if serverRegion != "" && serverRegion != location {
|
||||
writeErrorResponse(w, ErrInvalidRegion, r.URL)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user