prefer strings.EqualFold to strings.strings.ToLower where possible

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-12-19 19:44:01 +01:00
parent b0061f570e
commit 9f873d1059
3 changed files with 6 additions and 6 deletions

View File

@@ -342,7 +342,7 @@ func (c *EventActionHTTPConfig) validateMultiparts() error {
)
}
for _, k := range c.Headers {
if strings.ToLower(k.Key) == "content-type" {
if strings.EqualFold(k.Key, "content-type") {
return util.NewI18nError(
util.NewValidationError("content type is automatically set for multipart requests"),
util.I18nErrorMultipartCType,