Closed
Description
A few nil pointer deref. crashes and socket leaks in test cases have been seen during struggling against DragonFly BSD network stack. Not sure it's worth to fix, just a reminder. Typical cases (mostly in serve_test.go and transport_test.go): // No response.Body.Close resp, err := Get(ts.URL) if err != nil { t.Fatal(err) } body, err := ioutil.ReadAll(resp.Body) // Wild access to resp.Body resp, err := c.Get(ts.URL) if err != nil { t.Error(err) } ioutil.ReadAll(resp.Body)