1 files changed, 1 insertions(+), 1 deletions(-)

M middleware.go
M middleware.go +1 -1
@@ 39,7 39,7 @@ func AuthorizationMiddleware(fetch gobwe
 			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")