net/http/httptest: NewRequest panics whereas net/http NewRequest does not #26083
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10.2 linux/amd64
Does this issue reproduce with the latest release?
Yes on the go playground
What operating system and processor architecture are you using (
go env
)?What did you do?
In unit tests, I use httptest to simulate user requests.
What did you expect to see?
The request properly created
What did you see instead?
Playground link
https://play.golang.org/p/SB4a-aRS6xr
The text was updated successfully, but these errors were encountered: