summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--main.go14
1 files changed, 7 insertions, 7 deletions
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