mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 16:30:31 +02:00
UnexpectedUpdate in Network.answer_challenge
This commit is contained in:
@@ -133,9 +133,12 @@ class Network(object):
|
||||
:returns: Updated challenge resource.
|
||||
:rtype: `.ChallengeResource`
|
||||
|
||||
:raises errors.UnexpectedUpdate:
|
||||
|
||||
"""
|
||||
response = self._post(challr.uri, self._wrap_in_jws(response))
|
||||
assert response.headers['location'] == challr.uri
|
||||
if response.headers['location'] != challr.uri:
|
||||
raise UnexpectedUpdate(response.headers['location'])
|
||||
updated_challr = messages2.ChallengeResource(
|
||||
body=challenges.Challenge.from_json(response.json()),
|
||||
uri=challr.uri)
|
||||
|
||||
Reference in New Issue
Block a user