mirror of https://gitlab.com/bashrc2/epicyon
Only show failed http signatures in debug mode
parent
0c1ad3ecde
commit
01385fbdfe
5
inbox.py
5
inbox.py
|
@ -2736,7 +2736,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
|||
debug):
|
||||
httpSignatureFailed = True
|
||||
print('Queue: Header signature check failed')
|
||||
pprint(queueJson['httpHeaders'])
|
||||
if debug:
|
||||
pprint(queueJson['httpHeaders'])
|
||||
else:
|
||||
if debug:
|
||||
print('DEBUG: http header signature check success')
|
||||
|
@ -2770,6 +2771,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
|||
else:
|
||||
print('Queue: Header signature check failed and ' +
|
||||
'does not have jsonld signature')
|
||||
if debug:
|
||||
pprint(queueJson['httpHeaders'])
|
||||
|
||||
if verifyAllSignatures:
|
||||
print('Queue: inbox post does not have a jsonld signature ' +
|
||||
|
|
Loading…
Reference in New Issue