h2non / gock

HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
https://pkg.go.dev/github.com/h2non/gock
MIT License
2.04k stars 106 forks source link

panic on go 1.17 #95

Open pierods opened 2 years ago

pierods commented 2 years ago

It seems that in go 1.17, the http client's RoundTripper is also responsible for instantiating a Response, and this causes gock to panic.

h2non commented 2 years ago

Can you provide the error trace or a code snippet to reproduce it?