Fix bug with bearer authentication

This commit is contained in:
Tobie Morgan Hitchcock 2017-02-25 22:09:12 +00:00
parent 6e223f5f08
commit e70cdce87e

View file

@ -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)
})
}