diff --git a/main.go b/main.go index 1056df0f9bd09f4a9fde1cf9497a91aab554c737..6cf652ef41ee4cdb6e5ce7470afc5fbc4a2b6fe6 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"]