From 61ed24fdad689cc8783f70b8a5074eaf636cd8f4 Mon Sep 17 00:00:00 2001 From: Jeff Hodges Date: Sat, 12 Dec 2015 04:06:23 -0800 Subject: [PATCH] close http response bodies in the va Fixes #1266 --- va/validation-authority.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/va/validation-authority.go b/va/validation-authority.go index eb5b4e075..3466f3947 100644 --- a/va/validation-authority.go +++ b/va/validation-authority.go @@ -279,7 +279,6 @@ func (va *ValidationAuthorityImpl) fetchHTTP(identifier core.AcmeIdentifier, pat return emptyBody, challenge, err } - // Read body & test body, err := ioutil.ReadAll(httpResponse.Body) if err != nil { challenge.Status = core.StatusInvalid @@ -289,7 +288,7 @@ func (va *ValidationAuthorityImpl) fetchHTTP(identifier core.AcmeIdentifier, pat } return emptyBody, challenge, err } - + httpResponse.Body.Close() return body, challenge, nil }