net/http/cgi: Serve function passes a *http.Request value with a nil Body #39190
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
The
cgi.Serve
function passes to thehttp.Handler
a*http.Request
value with anil
Body field when the request "Content-Length" header is not greater than zero.But the documentation of
Request.Body
states:// For server requests, the Request Body is always non-nil
As a conseguence, if the
http.Handler
calls theRequest.ParseForm
method a "missing form body" panic occurs.The text was updated successfully, but these errors were encountered: