diff --git a/auth.go b/auth.go index 2ad4820..08b703b 100644 --- a/auth.go +++ b/auth.go @@ -14,6 +14,10 @@ const ( func checkAuthorization(r *http.Request, route *route) (string, int) { for _, f := range getAuthCheckers() { + if route.Auth == nil { + continue + } + errStr, statusCode := f(r, route) if errStr != "" { return errStr, statusCode