mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 09:50:45 +00:00
parent
656419ba14
commit
fa39dac391
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ func (hc *httpConn) doRequest(ctx context.Context, msg interface{}) (io.ReadClos
|
||||||
if _, err := buf.ReadFrom(resp.Body); err == nil {
|
if _, err := buf.ReadFrom(resp.Body); err == nil {
|
||||||
body = buf.Bytes()
|
body = buf.Bytes()
|
||||||
}
|
}
|
||||||
|
resp.Body.Close()
|
||||||
return nil, HTTPError{
|
return nil, HTTPError{
|
||||||
Status: resp.Status,
|
Status: resp.Status,
|
||||||
StatusCode: resp.StatusCode,
|
StatusCode: resp.StatusCode,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue