Skip to content

Commit

Permalink
Correct the Content-Type used in the POST-as-GET request to retrieve …
Browse files Browse the repository at this point in the history
…a cert (certbot#6757)
  • Loading branch information
adferrand authored and ohemorange committed Feb 12, 2019
1 parent 66c9767 commit a0a8292
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions acme/acme/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,7 @@ def finalize_order(self, orderr, deadline):
if body.error is not None:
raise errors.IssuanceError(body.error)
if body.certificate is not None:
certificate_response = self._post_as_get(body.certificate,
content_type=DER_CONTENT_TYPE).text
certificate_response = self._post_as_get(body.certificate).text
return orderr.update(body=body, fullchain_pem=certificate_response)
raise errors.TimeoutError()

Expand Down

0 comments on commit a0a8292

Please sign in to comment.