fix: asis
This commit is contained in:
5
auth.go
5
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)
|
||||
|
||||
Reference in New Issue
Block a user