mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
Update http.go
This commit is contained in:
parent
f93a7d22d3
commit
a50dafde5e
1 changed files with 0 additions and 2 deletions
|
|
@ -236,9 +236,7 @@ func (hc *httpConn) doRequest(ctx context.Context, msg interface{}) (io.ReadClos
|
|||
if _, err := buf.ReadFrom(resp.Body); err == nil {
|
||||
body = buf.Bytes()
|
||||
}
|
||||
|
||||
resp.Body.Close()
|
||||
|
||||
return nil, HTTPError{
|
||||
Status: resp.Status,
|
||||
StatusCode: resp.StatusCode,
|
||||
|
|
|
|||
Loading…
Reference in a new issue