~netlandish/gobwebs-oauth2

4643c9388d30f3dd849adc7d67f92e67a34fbf60 — Peter Sanchez 1 year, 6 months ago e20f86e
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")