pushed a test change

This commit is contained in:
Snorre lothar von Gohren Edwin 2015-12-23 09:45:17 +01:00
parent ca46641b15
commit fea509ebfe
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ func ParseFromRequest(req *http.Request, keyFunc Keyfunc) (token *Token, err err
if ah := req.Header.Get("Authorization"); ah != "" { if ah := req.Header.Get("Authorization"); ah != "" {
// Should be a bearer token // Should be a bearer token
if len(ah) > 6 && strings.ToUpper(ah[0:7]) == "BEARER " { if len(ah) > 6 && strings.ToUpper(ah[0:7]) == "BEARER " {
return Parse(ah, keyFunc) return Parse(ah[7:], keyFunc)
} }
} }