Skip to content

Commit 6d2bd68

Browse files
author
Mike Atlas
committed
Pull forward string comparison change for authorization header
1 parent 56881ad commit 6d2bd68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func AnnotateContext(ctx context.Context, req *http.Request) context.Context {
2626

2727
for key, vals := range req.Header {
2828
for _, val := range vals {
29-
if key == "Authorization" {
29+
if strings.ToLower(key) == "authorization" {
3030
pairs = append(pairs, key, val)
3131
continue
3232
}

0 commit comments

Comments
 (0)