Skip to content

Commit

Permalink
Merge pull request grpc-ecosystem#164 from tmc/rfc2616
Browse files Browse the repository at this point in the history
make Authorization header check case-insensitive to comply with RFC 2616 4.2
  • Loading branch information
yugui committed May 23, 2016
2 parents 40c372f + c446521 commit 3d3ee74
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 3d3ee74

Please sign in to comment.