diff --git a/supernode/httpclient/origin_http_client.go b/supernode/httpclient/origin_http_client.go index 5f6ee4a11..0dafa2767 100644 --- a/supernode/httpclient/origin_http_client.go +++ b/supernode/httpclient/origin_http_client.go @@ -186,6 +186,7 @@ func (client *OriginClient) Download(url string, headers map[string]string, chec if checkCode(resp.StatusCode) { return resp, nil } + resp.Body.Close() return nil, fmt.Errorf("unexpected status code: %d", resp.StatusCode) }