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.