mirror of
https://github.com/versity/versitygw.git
synced 2026-08-19 21:56:27 +00:00
fix: Fixed staticcheck error
This commit is contained in:
@@ -51,8 +51,8 @@ func VerifyV4Signature(root RootUserConfig, iam auth.IAMService, region string,
|
||||
|
||||
// Check the signature version
|
||||
authParts := strings.Split(authorization, ",")
|
||||
for _, el := range authParts {
|
||||
el = strings.TrimSpace(el)
|
||||
for i, el := range authParts {
|
||||
authParts[i] = strings.TrimSpace(el)
|
||||
}
|
||||
|
||||
if len(authParts) != 3 {
|
||||
|
||||
Reference in New Issue
Block a user