Skip to content

Commit 0b6e405

Browse files
mnidaglamboyosa
authored andcommitted
Update authn.go (#682)
1 parent c5e0929 commit 0b6e405

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

go/event-ingestion/authn/authn.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
func getAPIKeyFromHeader(h http.Header) string {
16-
key := h.Get("X-API-KEY")
16+
key := h.Get("X-Api-Key")
1717

1818
if key == "" {
1919
for k, v := range h {
@@ -23,7 +23,6 @@ func getAPIKeyFromHeader(h http.Header) string {
2323
}
2424
}
2525
}
26-
2726
return key
2827
}
2928

0 commit comments

Comments
 (0)