Some minor code cleanup for client.py

This commit is contained in:
Anthony Wang 2023-01-19 19:33:20 +00:00
parent 76d293317c
commit 7cbb9f7e49
No known key found for this signature in database
GPG key ID: 1DDC6BC38786C595

View file

@ -21,9 +21,7 @@ signature = b64encode(privkey.sign(message, padding.PKCS1v15(), hashes.SHA256())
header = f'keyId="https://0.exozy.me/users/test.jsonld#main-key",headers="date digest",signature="{signature}"'
resp = post('https://0.exozy.me/users/test.outbox', headers={
'Date': date,
'Digest': f'SHA-256={digest}',
'Signature': header,
'Date': date, 'Digest': f'SHA-256={digest}', 'Signature': header
}, data=activity)
print(resp)
print(resp.text)