Skip to content

Commit

Permalink
make Authorization header check case-insensitive to comply with RFC 2616
Browse files Browse the repository at this point in the history
4.2
  • Loading branch information
tmc committed May 22, 2016
1 parent 03164ec commit bcaacb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func AnnotateContext(ctx context.Context, req *http.Request) context.Context {
var pairs []string
for key, vals := range req.Header {
for _, val := range vals {
if key == "Authorization" {
if strings.ToLower(key) == "authorization" {
pairs = append(pairs, key, val)
continue
}
Expand Down

0 comments on commit bcaacb4

Please sign in to comment.