mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Close the body after reading the response body information (#5907)
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
This commit is contained in:
@@ -61,6 +61,7 @@ func TestCustomHTTPRequestValidator(t *testing.T) {
|
||||
if res.StatusCode != tc.expected {
|
||||
t.Error("unexpected HTTP code", res.StatusCode)
|
||||
}
|
||||
res.Body.Close()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user