Skip to content

Commit edcd9b0

Browse files
committed
Merge pull request #164 from tmc/rfc2616
make Authorization header check case-insensitive to comply with RFC 2616 4.2
2 parents 03164ec + bcaacb4 commit edcd9b0

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)