Cleanup and update the PR with the master branch.

This commit is contained in:
Remco Verhoef
2017-05-17 14:59:20 +02:00
committed by Harshavardhana
parent a76556ec1b
commit 0dab038858
7 changed files with 13 additions and 1086 deletions

View File

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