From c6cf75d2f6c6b3276380d4337af8926e2cdea467 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Thu, 28 Sep 2023 15:45:29 +0800 Subject: [PATCH] fix: asis --- auth.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/auth.go b/auth.go index 3815e21..a386b3c 100644 --- a/auth.go +++ b/auth.go @@ -21,11 +21,6 @@ func handleAuth(c *gin.Context) error { authorization = strings.Trim(authorization[len("Bearer"):], " ") log.Println("Received authorization", authorization) - if authConfig.Value == "asis" { - log.Println("Authorization is asis, skipping") - return nil - } - if authorization != authConfig.Value { err = errors.New("wrong authorization header") c.AbortWithError(403, err)