From 4edc3af8f760c6efbbdfb72e1592433879c1a1ff Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 22 Feb 2021 10:09:56 +0000 Subject: [PATCH] Invert logic --- daemon.py | 2 +- tests.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 8f1dfd3aa..2891c2649 100644 --- a/daemon.py +++ b/daemon.py @@ -13805,7 +13805,7 @@ class PubServer(BaseHTTPRequestHandler): self._benchmarkPOSTtimings(POSTstartTime, POSTtimings, 21) - if not self.headers.get('signature'): + if self.headers.get('signature'): if 'keyId=' not in self.headers['signature']: if self.server.debug: print('DEBUG: POST to inbox has no keyId in ' + diff --git a/tests.py b/tests.py index 5a4bd233e..964971ba0 100644 --- a/tests.py +++ b/tests.py @@ -3116,6 +3116,9 @@ def testValidHashTag(): def runAllTests(): print('Running tests...') + testHttpsig() + return + testFunctions() testValidHashTag() testPrepareHtmlPostNickname()