mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
fix: use equalFold() instead of lower and compare (#13624)
This commit is contained in:
@@ -382,7 +382,7 @@ func IsObjectLockLegalHoldRequested(h http.Header) bool {
|
||||
|
||||
// IsObjectLockGovernanceBypassSet returns true if object lock governance bypass header is set.
|
||||
func IsObjectLockGovernanceBypassSet(h http.Header) bool {
|
||||
return strings.ToLower(h.Get(AmzObjectLockBypassRetGovernance)) == "true"
|
||||
return strings.EqualFold(h.Get(AmzObjectLockBypassRetGovernance), "true")
|
||||
}
|
||||
|
||||
// IsObjectLockRequested returns true if legal hold or object lock retention headers are requested.
|
||||
|
||||
Reference in New Issue
Block a user