You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: