Fixing header check
1 files changed, 1 insertions(+), 1 deletions(-) M middleware.go
M middleware.go => middleware.go +1 -1
@@ 39,7 39,7 @@ func AuthorizationMiddleware(fetch gobwebs.UserFetch) echo.MiddlewareFunc { req := c.Request() gctx := c.(*server.Context) header := req.Header.Get("Authorization") if header == "" { if header != "" { z := strings.SplitN(header, " ", 2) if len(z) != 2 { return fmt.Errorf("Invalid Authorization header")