Skip to content

Commit 46fd83d

Browse files
committed
fixing broken function for test
1 parent efd5b96 commit 46fd83d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/auth/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ func GetAPIKey(headers http.Header) (string, error) {
1919
return "", errors.New("malformed authorization header")
2020
}
2121

22-
return splitAuth, nil
22+
return splitAuth[2], nil
2323
}

0 commit comments

Comments
 (0)