From dbb4c5e18719c6c5d60d6c497927c8496e2d7f57 Mon Sep 17 00:00:00 2001 From: Sumit Tokkar Date: Fri, 12 Feb 2021 14:55:37 -0600 Subject: [PATCH] added check for no auth --- auth.go | 4 ++++ 1 file changed, 4 insertions(+) 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