diff --git a/pkg/loadRequest/loadHttp/http_requester.go b/pkg/loadRequest/loadHttp/http_requester.go index 2d3d3b8e..27946133 100644 --- a/pkg/loadRequest/loadHttp/http_requester.go +++ b/pkg/loadRequest/loadHttp/http_requester.go @@ -251,6 +251,7 @@ func (b *Work) makeRequest(c *http.Client, wg *sync.WaitGroup) { var statusCode int if err == nil { size = resp.ContentLength + _, _ = io.Copy(io.Discard, resp.Body) resp.Body.Close() statusCode = resp.StatusCode } else {