]> Cypherpunks repositories - gostls13.git/commit
net/http/cgi: don't pass nil Body to the child handler
authorMarco <gazerro@open2b.com>
Sun, 24 May 2020 12:58:51 +0000 (14:58 +0200)
committerBryan C. Mills <bcmills@google.com>
Tue, 1 Sep 2020 21:23:24 +0000 (21:23 +0000)
commit6fc329bb7fbb78315e2f53895a9fc6cbed63c1d7
tree0960a1054a402e4a92f6450b9f8913eebe1e03e6
parent971203cad3c4a5cdfd196a7ad5ce76b550d2ff9f
net/http/cgi: don't pass nil Body to the child handler

For server requests, the http.Request Body should not be nil.

Fixes #39190

Change-Id: I32de7b6c0f6ca55008fea9fd86089cda0a2dea62
Reviewed-on: https://go-review.googlesource.com/c/go/+/235137
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/cgi/child.go
src/net/http/cgi/integration_test.go