Fix bug with bearer authentication
This commit is contained in:
parent
6e223f5f08
commit
e70cdce87e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue