mirror of
https://github.com/minio/minio.git
synced 2025-11-22 18:47:43 -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user