From 1f53c4f816e5e2a7c6b74cfd4df4700039c76e5c Mon Sep 17 00:00:00 2001 From: Dominik Schulz Date: Fri, 30 Jun 2017 22:11:25 +0200 Subject: [PATCH] Fix basic auth test --- collector/nodes_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/nodes_test.go b/collector/nodes_test.go index 473c3bdc..46081272 100644 --- a/collector/nodes_test.go +++ b/collector/nodes_test.go @@ -84,7 +84,7 @@ func (h *basicAuth) checkAuth(w http.ResponseWriter, r *http.Request) bool { } if h.User == pair[0] && h.Pass == pair[1] { - return false + return true } return false }