From 233cd137ea990561d30ada85e7e672416d65c0c2 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Mon, 6 Feb 2023 15:28:25 -0500 Subject: [PATCH] Remove trailing whitespace --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 244fa53..dbd5dc9 100644 --- a/server.py +++ b/server.py @@ -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']):