diff options
Diffstat (limited to 'contrib/cgi/cgi.go')
-rw-r--r-- | contrib/cgi/cgi.go | 4 |
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 |