From 1dbc27e6f25a918b42e3b5fc7a149a0a19e9d713 Mon Sep 17 00:00:00 2001 From: maride Date: Fri, 15 Feb 2019 17:18:10 +0100 Subject: Migrate to space-intendation --- main.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 40a66db..3d4c52c 100644 --- a/main.go +++ b/main.go @@ -27,14 +27,14 @@ func httpHandler(w http.ResponseWriter, r *http.Request) { user, pass, ok := r.BasicAuth() if ok { - // This also includes empty user/pass combos (if they are correctly encoded) - // To avoid them, use `len(user) > 0 && len(pass) > 0` - log.Printf("%s: %s %s:%s@%s%s", r.RemoteAddr, r.Method, user, pass, r.Host, r.URL.Path) - - // Raise stats - metrics_num_passwords++ + // This also includes empty user/pass combos (if they are correctly encoded) + // To avoid them, use `len(user) > 0 && len(pass) > 0` + log.Printf("%s: %s %s:%s@%s%s", r.RemoteAddr, r.Method, user, pass, r.Host, r.URL.Path) + + // Raise stats + metrics_num_passwords++ } else { - log.Printf("%s: %s %s%s", r.RemoteAddr, r.Method, r.Host, r.URL.Path) + log.Printf("%s: %s %s%s", r.RemoteAddr, r.Method, r.Host, r.URL.Path) } // Decline that try -- cgit 1.4.1