From fea509ebfec2fd8f0b61fa9a0df05695a830d78b Mon Sep 17 00:00:00 2001 From: Snorre lothar von Gohren Edwin Date: Wed, 23 Dec 2015 09:45:17 +0100 Subject: [PATCH] pushed a test change --- token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token.go b/token.go index fde0116..1cf267d 100644 --- a/token.go +++ b/token.go @@ -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) } }