network2: retry-after stub

This commit is contained in:
Jakub Warmuz 2015-03-24 19:12:24 +00:00
parent 3676a6d87a
commit f29fe21ddd
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA

View file

@ -189,10 +189,13 @@ class Network(object):
"""
response = requests.get(authzr.uri)
retry_after = 0 # TODO, get it from response.headers.get('Retry-After')
updated_authzr = self._authzr_from_response(
response, authzr.body.identifier, authzr.uri, authzr.new_cert_uri)
# TODO check UnexpectedUpdate
return updated_authzr
return updated_authzr, retry_after
def request_issuance(self, csr, authzrs):
"""Request issuance.