diff options
Diffstat (limited to 'contrib/cgi/cgi.go')
-rw-r--r-- | contrib/cgi/cgi.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/cgi/cgi.go b/contrib/cgi/cgi.go index 749a284..de0d35f 100644 --- a/contrib/cgi/cgi.go +++ b/contrib/cgi/cgi.go @@ -88,6 +88,7 @@ func RunCGI( request *sr.Request, executable string, pathInfo string, + stderr io.Writer, ) (*bytes.Buffer, int, error) { pathSegments := strings.Split(executable, "/") @@ -114,6 +115,7 @@ func RunCGI( } responseBuffer := &bytes.Buffer{} cmd.Stdout = responseBuffer + cmd.Stderr = stderr err := cmd.Run() if err != nil { |