mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 19:31:51 +02:00
Correct the Content-Type used in the POST-as-GET request to retrieve a cert (#6757)
This commit is contained in:
committed by
ohemorange
parent
66c9767623
commit
a0a8292ff2
+1
-2
@@ -739,8 +739,7 @@ class ClientV2(ClientBase):
|
|||||||
if body.error is not None:
|
if body.error is not None:
|
||||||
raise errors.IssuanceError(body.error)
|
raise errors.IssuanceError(body.error)
|
||||||
if body.certificate is not None:
|
if body.certificate is not None:
|
||||||
certificate_response = self._post_as_get(body.certificate,
|
certificate_response = self._post_as_get(body.certificate).text
|
||||||
content_type=DER_CONTENT_TYPE).text
|
|
||||||
return orderr.update(body=body, fullchain_pem=certificate_response)
|
return orderr.update(body=body, fullchain_pem=certificate_response)
|
||||||
raise errors.TimeoutError()
|
raise errors.TimeoutError()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user