Skip to content

Commit 92717fe

Browse files
committed
breaking GetApiKey function on purpose for testing, splitAuth[2]
1 parent 04bf27e commit 92717fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
go-version: "1.23.0"
2020

2121
- name: Run go version
22-
run: go version
22+
run: go test ./

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[1], nil
22+
return splitAuth[2], nil
2323
}

0 commit comments

Comments
 (0)