Invert logic

main
Bob Mottram 2021-02-22 10:09:56 +00:00
parent a4b74c70db
commit 4edc3af8f7
2 changed files with 4 additions and 1 deletions

View File

@ -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 ' +

View File

@ -3116,6 +3116,9 @@ def testValidHashTag():
def runAllTests():
print('Running tests...')
testHttpsig()
return
testFunctions()
testValidHashTag()
testPrepareHtmlPostNickname()