mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
prefer strings.EqualFold to strings.strings.ToLower where possible
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user