aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/cgi/child.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/http/cgi/child.go')
-rw-r--r--src/net/http/cgi/child.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/http/cgi/child.go b/src/net/http/cgi/child.go
index 9474175f17..d7d813e68a 100644
--- a/src/net/http/cgi/child.go
+++ b/src/net/http/cgi/child.go
@@ -146,6 +146,9 @@ func Serve(handler http.Handler) error {
if err != nil {
return err
}
+ if req.Body == nil {
+ req.Body = http.NoBody
+ }
if handler == nil {
handler = http.DefaultServeMux
}