From 7ed7afed1c92ae57d34a7b7933631fbf19fc121b Mon Sep 17 00:00:00 2001 From: bcmmbaga Date: Thu, 23 May 2019 00:13:36 +0300 Subject: [PATCH] fix closing wrong response body --- api/client.go | 1 - 1 file changed, 1 deletion(-) diff --git a/api/client.go b/api/client.go index b5b45b117..a65cd3235 100644 --- a/api/client.go +++ b/api/client.go @@ -69,7 +69,6 @@ func (c *Client) Do(req *http.Request) (*http.Response, error) { if err != nil { return nil, err } - defer res.Body.Close() debug.DumpResponse(res) return res, nil