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):
|
debug):
|
||||||
httpSignatureFailed = True
|
httpSignatureFailed = True
|
||||||
print('Queue: Header signature check failed')
|
print('Queue: Header signature check failed')
|
||||||
pprint(queueJson['httpHeaders'])
|
if debug:
|
||||||
|
pprint(queueJson['httpHeaders'])
|
||||||
else:
|
else:
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: http header signature check success')
|
print('DEBUG: http header signature check success')
|
||||||
|
@ -2770,6 +2771,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
else:
|
else:
|
||||||
print('Queue: Header signature check failed and ' +
|
print('Queue: Header signature check failed and ' +
|
||||||
'does not have jsonld signature')
|
'does not have jsonld signature')
|
||||||
|
if debug:
|
||||||
|
pprint(queueJson['httpHeaders'])
|
||||||
|
|
||||||
if verifyAllSignatures:
|
if verifyAllSignatures:
|
||||||
print('Queue: inbox post does not have a jsonld signature ' +
|
print('Queue: inbox post does not have a jsonld signature ' +
|
||||||
|
|
Loading…
Reference in New Issue