We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34faa80 commit ba56d58Copy full SHA for ba56d58
internal/auth/auth.go
@@ -12,7 +12,7 @@ var ErrNoAuthHeaderIncluded = errors.New("no authorization header included")
12
func GetAPIKey(headers http.Header) (string, error) {
13
authHeader := headers.Get("Authorization")
14
if authHeader == "" {
15
- return "Ope, there was an error", ErrNoAuthHeaderIncluded
+ return "", ErrNoAuthHeaderIncluded
16
}
17
splitAuth := strings.Split(authHeader, " ")
18
if len(splitAuth) < 2 || splitAuth[0] != "ApiKey" {
0 commit comments