From 238047efa1ffad82a86e0eabebe896aa73297a33 Mon Sep 17 00:00:00 2001 From: Massimiliano Adamo <maxadamo@gmail.com> Date: Thu, 1 Sep 2022 14:25:01 +0200 Subject: [PATCH] added comment --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 1056df0..6cf652e 100644 --- a/main.go +++ b/main.go @@ -33,6 +33,7 @@ func init() { // serve certificates JSON func renderJSON(w http.ResponseWriter, req *http.Request) { + // content-type currently not working provider := strings.Split(req.URL.Path, "/")[2] serveFile := fmt.Sprintf("%v/%v/%v.json", webDir, provider, provider) cmd := exec.Command(jsonConverter, "-p", provider) @@ -69,7 +70,7 @@ func renderPage(w http.ResponseWriter, req *http.Request) { // trigger puppet func triggerPuppet(w http.ResponseWriter, req *http.Request) { - // content-type is currently not working + // content-type currently not working cmd := exec.Command("/usr/bin/pkill", "-f", "/opt/puppetlabs/puppet/bin/puppet", "--signal", "SIGUSR1") authToken := "BOFH" _, ok := req.Header["Authorization"] -- GitLab