From e70cdce87e8f222447b385f0587fe65f34e04af5 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sat, 25 Feb 2017 22:09:12 +0000 Subject: [PATCH] Fix bug with bearer authentication --- web/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/auth.go b/web/auth.go index 9c1b833a..21dbe511 100644 --- a/web/auth.go +++ b/web/auth.go @@ -140,7 +140,7 @@ func auth() fibre.MiddlewareFunc { // process this as default authentication. if len(head) > 0 && head[:6] == "Bearer" { - return checkBearer(c, head[6:], func() error { + return checkBearer(c, head[7:], func() error { return h(c) }) }