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()