Skip to content

Commit

Permalink
pushed a test change
Browse files Browse the repository at this point in the history
  • Loading branch information
vongohren committed Dec 23, 2015
1 parent ca46641 commit fea509e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion token.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func ParseFromRequest(req *http.Request, keyFunc Keyfunc) (token *Token, err err
if ah := req.Header.Get("Authorization"); ah != "" {
// Should be a bearer token
if len(ah) > 6 && strings.ToUpper(ah[0:7]) == "BEARER " {
return Parse(ah, keyFunc)
return Parse(ah[7:], keyFunc)
}
}

Expand Down

0 comments on commit fea509e

Please sign in to comment.