mirror of
https://github.com/minio/minio.git
synced 2025-02-02 17:35:58 -05:00
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
This commit is contained in:
parent
9dd0e3dc44
commit
2da0cfc904
@ -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…
x
Reference in New Issue
Block a user