Merge branch 'master' into parallel_caa_dns

This commit is contained in:
Jeff Hodges 2015-12-14 11:24:35 -08:00
commit b6ce014d91
1 changed files with 1 additions and 2 deletions

View File

@ -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
}