mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
signature: use region from Auth header if server's region not configured (#4329)
This commit is contained in:
committed by
Harshavardhana
parent
465274cd21
commit
5db1e9f3dd
@@ -68,7 +68,10 @@ func getContentSha256Cksum(r *http.Request) string {
|
||||
|
||||
// isValidRegion - verify if incoming region value is valid with configured Region.
|
||||
func isValidRegion(reqRegion string, confRegion string) bool {
|
||||
if confRegion == "" || confRegion == "US" {
|
||||
if confRegion == "" {
|
||||
return true
|
||||
}
|
||||
if confRegion == "US" {
|
||||
confRegion = globalMinioDefaultRegion
|
||||
}
|
||||
// Some older s3 clients set region as "US" instead of
|
||||
|
||||
Reference in New Issue
Block a user