You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// For server requests the Request Body is always non-nil
// but will return EOF immediately when no body is present.
// The Server will close the request body. The ServeHTTP
// Handler does not need to.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.8rc2 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
httptest.NewRequest("GET", "/path/some_url", nil)
What did you expect to see?
httptest request works as expected, which is its body to be nil.
What did you see instead?
it fails for body being not nil. it actually sets the body to be
{}
.The text was updated successfully, but these errors were encountered: