signature: Use the client sent region if region is properly validated. (#2534)

A properly validated region string from the client should be once
validated properly.

Fixes #2521
master
Harshavardhana 8 years ago committed by GitHub
parent 9dd0e3dc44
commit 2da0cfc904
  1. 3
      cmd/signature-v4.go

@ -361,9 +361,8 @@ func doesSignatureMatch(hashedPayload string, r *http.Request, validateRegion bo
if !isValidRegion(sRegion, region) {
return ErrInvalidRegion
}
} else {
region = sRegion
}
region = sRegion
// Extract date, if not present throw error.
var date string

Loading…
Cancel
Save