fix: was using a pointer instead of calling the function-created var
This commit is contained in:
parent
f3b9d67b77
commit
6f89e66306
1 changed files with 1 additions and 1 deletions
2
auth.go
2
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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue