Correct the Content-Type used in the POST-as-GET request to retrieve a cert (#6757)

This commit is contained in:
Adrien Ferrand 2019-02-13 00:36:27 +01:00 committed by ohemorange
parent 66c9767623
commit a0a8292ff2

View file

@ -739,8 +739,7 @@ class ClientV2(ClientBase):
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()