mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
fix: use equalFold() instead of lower and compare (#13624)
This commit is contained in:
@@ -110,7 +110,7 @@ func cacheControlOpts(o ObjectInfo) *cacheControl {
|
||||
|
||||
var headerVal string
|
||||
for k, v := range m {
|
||||
if strings.ToLower(k) == "cache-control" {
|
||||
if strings.EqualFold(k, "cache-control") {
|
||||
headerVal = v
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ func (az *warmBackendAzure) getDest(object string) string {
|
||||
}
|
||||
func (az *warmBackendAzure) tier() azblob.AccessTierType {
|
||||
for _, t := range azblob.PossibleAccessTierTypeValues() {
|
||||
if strings.ToLower(az.StorageClass) == strings.ToLower(string(t)) {
|
||||
if strings.EqualFold(az.StorageClass, string(t)) {
|
||||
return t
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user