net/http/httptest: ResponseRecorder.Result comment gives incorrect guarantee about ResponseRecorder.Body non-nil-ness #26442
Labels
Documentation
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.10.3
Does this issue reproduce with the latest release?
Yes.
What did you do?
Compare the
ResponseRecorder.Result
documentation/comment......to actual behaviour:
It seems that guarantee doesn't apply if
Response.Body
was nil to begin with.The text was updated successfully, but these errors were encountered: