From d1e1794dd7f5a84a898fec9614b433efdec97cbc Mon Sep 17 00:00:00 2001
From: Massimiliano Adamo <maxadamo@gmail.com>
Date: Sun, 19 Dec 2021 16:22:15 +0100
Subject: [PATCH] code refactoring

---
 main.go | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/main.go b/main.go
index 79fc15b..d50ad47 100644
--- a/main.go
+++ b/main.go
@@ -28,7 +28,7 @@ func init() {
 	ErrorLogger = log.New(os.Stdout, "ERROR: ", log.Ldate|log.Ltime)
 }
 
-// serve directory ipv6
+// serve certificates list
 func renderPage(w http.ResponseWriter, req *http.Request) {
 	provider := strings.Split(req.URL.Path, "/")
 	serveFile := filepath.Join(webDir, req.URL.Path)
@@ -43,14 +43,12 @@ func renderPage(w http.ResponseWriter, req *http.Request) {
 		}
 		w.WriteHeader(http.StatusOK)
 	}
-	fmt.Printf("test %s\n", serveFile)
 	http.ServeFile(w, req, serveFile)
 }
 
 // function redirect
 func redirect(w http.ResponseWriter, req *http.Request) {
 	redirectURL := filepath.Join(req.URL.Path, "/by_name.html")
-	fmt.Printf("test %s\n", redirectURL)
 	http.Redirect(w, req, redirectURL, http.StatusMovedPermanently)
 }
 
-- 
GitLab