Skip to content

Commit

Permalink
damn python3 bytes-to-strings encoding gets you again...
Browse files Browse the repository at this point in the history
  • Loading branch information
diafygi committed Nov 15, 2017
1 parent c4940d2 commit 19b274c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme_tiny.py
Expand Up @@ -82,7 +82,7 @@ def _send_signed_request(url, payload):
log.info("Registering account...")
code, result = _send_signed_request(CA + "/acme/new-reg", {
"resource": "new-reg",
"agreement": json.load(urlopen(CA + "/directory"))['meta']['terms-of-service'],
"agreement": json.loads(urlopen(CA + "/directory").read().decode('utf8'))['meta']['terms-of-service'],
})
if code == 201:
log.info("Registered!")
Expand Down

0 comments on commit 19b274c

Please sign in to comment.