From 7cbb9f7e496b09b2fc88ddd42faa9cfa7fa4c8ee Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 19 Jan 2023 19:33:20 +0000 Subject: Some minor code cleanup for client.py --- client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client.py b/client.py index 7a74607..e166bc9 100644 --- a/client.py +++ b/client.py @@ -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) -- cgit v1.2.3-70-g09d2