summaryrefslogtreecommitdiff
path: root/contrib/cgi
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-01-10 17:50:44 -0700
committertjpcc <tjp@ctrl-c.club>2023-01-10 17:50:44 -0700
commit918246ed729c1ae4297bc52faf7d14ed46e5f84c (patch)
tree189b6cdac0afe82f3354f6307c6c9f117afb53fc /contrib/cgi
parent474a28663f2871c91ea758c1fa4e0cf9bc7326a5 (diff)
remove some debugging prints, gofmt
Diffstat (limited to 'contrib/cgi')
-rw-r--r--contrib/cgi/cgi.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/cgi/cgi.go b/contrib/cgi/cgi.go
index b5dfbdd..e43f1ef 100644
--- a/contrib/cgi/cgi.go
+++ b/contrib/cgi/cgi.go
@@ -114,14 +114,13 @@ func RunCGI(
scriptName = scriptName[:len(scriptName)-1]
}
- cmd := exec.CommandContext(ctx, "./" + basename)
+ cmd := exec.CommandContext(ctx, "./"+basename)
cmd.Env = prepareCGIEnv(ctx, req, scriptName, pathInfo)
cmd.Dir = dirPath
responseBuffer := &bytes.Buffer{}
cmd.Stdout = responseBuffer
- fmt.Printf("running %s in %s\n", basename, dirPath)
if err := cmd.Run(); err != nil {
var exErr *exec.ExitError
if errors.As(err, &exErr) {
@@ -133,7 +132,6 @@ func RunCGI(
response, err := gemini.ParseResponse(responseBuffer)
if err != nil {
- fmt.Printf("response: %q\n", responseBuffer)
return gemini.Failure(err)
}
return response