Merge branch 'master' into parallel_caa_dns

This commit is contained in:
Jacob Hoffman-Andrews 2015-12-14 12:09:29 -08:00
commit b97d64ff7c
1 changed files with 1 additions and 1 deletions

View File

@ -267,6 +267,7 @@ func (va *ValidationAuthorityImpl) fetchHTTP(identifier core.AcmeIdentifier, pat
va.log.Debug(strings.Join([]string{challenge.Error.Error(), err.Error()}, ": "))
return emptyBody, challenge, err
}
defer httpResponse.Body.Close()
if httpResponse.StatusCode != 200 {
challenge.Status = core.StatusInvalid
@ -288,7 +289,6 @@ func (va *ValidationAuthorityImpl) fetchHTTP(identifier core.AcmeIdentifier, pat
}
return emptyBody, challenge, err
}
httpResponse.Body.Close()
return body, challenge, nil
}