summaryrefslogtreecommitdiff
path: root/contrib/cgi/cgi.go
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cgi/cgi.go')
-rw-r--r--contrib/cgi/cgi.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/cgi/cgi.go b/contrib/cgi/cgi.go
index 9511ac5..bcdd5e1 100644
--- a/contrib/cgi/cgi.go
+++ b/contrib/cgi/cgi.go
@@ -115,6 +115,9 @@ func RunCGI(
cmd.Env = prepareCGIEnv(ctx, request, scriptName, pathInfo)
cmd.Dir = dirPath
+ if body, ok := request.Meta.(io.Reader); ok {
+ cmd.Stdin = body
+ }
responseBuffer := &bytes.Buffer{}
cmd.Stdout = responseBuffer