diff --git a/main.go b/main.go index 6317b3f..8ffabe1 100644 --- a/main.go +++ b/main.go @@ -276,9 +276,10 @@ func main() { user = strings.TrimLeft(name, prefix) pass = values[0] ok = true + break } } - + if !(ok && authenticate(user, pass)) { w.Header().Set("WWW-Authenticate", `Basic realm="widdler"`) http.Error(w, "Unauthorized", http.StatusUnauthorized)