Skip to content

Commit bcaacb4

Browse files
committed
make Authorization header check case-insensitive to comply with RFC 2616
4.2
1 parent 03164ec commit bcaacb4

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
@@ -21,7 +21,7 @@ func AnnotateContext(ctx context.Context, req *http.Request) context.Context {
2121
var pairs []string
2222
for key, vals := range req.Header {
2323
for _, val := range vals {
24-
if key == "Authorization" {
24+
if strings.ToLower(key) == "authorization" {
2525
pairs = append(pairs, key, val)
2626
continue
2727
}

0 commit comments

Comments
 (0)