mirror of
https://git.exozy.me/a/fuwuqi.git
synced 2024-11-24 02:01:06 +00:00
Remove trailing whitespace
This commit is contained in:
parent
dc3f6329b2
commit
233cd137ea
1 changed files with 1 additions and 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']):
|
||||
|
|
Loading…
Reference in a new issue