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