From 918246ed729c1ae4297bc52faf7d14ed46e5f84c Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 10 Jan 2023 17:50:44 -0700 Subject: remove some debugging prints, gofmt --- contrib/cgi/cgi.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'contrib/cgi/cgi.go') 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 -- cgit v1.2.3