diff options
author | Anthony Wang | 2023-02-06 15:28:25 -0500 |
---|---|---|
committer | Anthony Wang | 2023-02-06 15:28:25 -0500 |
commit | 233cd137ea990561d30ada85e7e672416d65c0c2 (patch) | |
tree | 5d5b1258bf47f4f5a3d526ca3e3db7744a40a677 | |
parent | dc3f6329b2b22cb94e71b667867e085d48527d14 (diff) |
-rw-r--r-- | server.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -83,7 +83,7 @@ class fuwuqi(SimpleHTTPRequestHandler): signature = search('signature="(.*?)"', self.headers['Signature']).group(1) pubkey.verify(b64decode(signature), message[:-1].encode('utf8'), padding.PKCS1v15(), hashes.SHA256()) - # Make sure activity doer matches HTTP signature + # Make sure activity doer matches HTTP signature if ('actor' in activity and activity['actor'] != signer['id']) or \ ('attributedTo' in activity and activity['attributedTo'] != signer['id']) or \ ('attributedTo' in activity['object'] and activity['object']['attributedTo'] != signer['id']): |