mirror of
https://git.exozy.me/a/fuwuqi.git
synced 2024-11-21 20:21:01 +00:00
Some minor code cleanup for client.py
This commit is contained in:
parent
76d293317c
commit
7cbb9f7e49
1 changed files with 1 additions and 3 deletions
|
@ -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}"'
|
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={
|
resp = post('https://0.exozy.me/users/test.outbox', headers={
|
||||||
'Date': date,
|
'Date': date, 'Digest': f'SHA-256={digest}', 'Signature': header
|
||||||
'Digest': f'SHA-256={digest}',
|
|
||||||
'Signature': header,
|
|
||||||
}, data=activity)
|
}, data=activity)
|
||||||
print(resp)
|
print(resp)
|
||||||
print(resp.text)
|
print(resp.text)
|
||||||
|
|
Loading…
Reference in a new issue