From 6f89e66306d9e34c9c991dcf2a535238a192ba73 Mon Sep 17 00:00:00 2001 From: parsec Date: Thu, 16 Mar 2023 21:53:03 -0400 Subject: [PATCH] fix: was using a pointer instead of calling the function-created var --- auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.go b/auth.go index 8a18a24..6dd5f37 100644 --- a/auth.go +++ b/auth.go @@ -35,7 +35,7 @@ func authMiddleware(next http.Handler) http.Handler { } func parseAuth(auth string) { - identity := strings.Split(*setBasicAuth, ":") + identity := strings.Split(auth, ":") if len(identity) != 2 { log.Fatalln("basic auth must be like this: user:password") }