1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-14 09:39:17 -04:00

Fix: close response body (#484)

This commit is contained in:
Loyalsoldier
2020-12-03 16:07:41 +08:00
committed by GitHub
parent 45aeaa8080
commit 5e99737c12
3 changed files with 5 additions and 3 deletions

View File

@@ -129,7 +129,7 @@ func TestHttpError(t *testing.T) {
Transport: transport,
}
resp, err := client.Get("http://127.0.0.1:" + dest.Port.String()) // nolint: bodyclose
resp, err := client.Get("http://127.0.0.1:" + dest.Port.String())
common.Must(err)
defer resp.Body.Close()
if resp.StatusCode != 503 {