Skip to content

Commit

Permalink
Merge pull request #46 from Tharyrok/master
Browse files Browse the repository at this point in the history
Setting up the quick fix to authenticate GET requests
  • Loading branch information
plinss authored Feb 15, 2021
2 parents 0aabc30 + f5fdef1 commit 6ce2a45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acmebot
Original file line number Diff line number Diff line change
Expand Up @@ -2205,7 +2205,7 @@ class AcmeManager(object):
authorizations = []
for url in body.authorizations:
try:
authorizations.append(self.acme_client.client._authzr_from_response(self.acme_client.client.net.get(url), uri=url))
authorizations.append(self.acme_client.client._authzr_from_response(self.acme_client.client._post_as_get(url), uri=url))
except Exception as error:
self._error('Unable to request authorization for ', domain_name, '\n', self._indent(error), '\n')
continue
Expand Down Expand Up @@ -2267,7 +2267,7 @@ class AcmeManager(object):
return key_options

def _poll_order(self, order):
response = self.acme_client.net.get(order.uri)
response = self.acme_client._post_as_get(order.uri)
body = messages.Order.from_json(response.json())
if body.error is not None:
raise body.error
Expand Down

0 comments on commit 6ce2a45

Please sign in to comment.