http signatures: immediately fail validation attempt if no actor keys can be found

This commit is contained in:
kaniini 2018-10-31 02:28:51 +00:00
parent b12fe63a36
commit 29c3bf4b5a
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ async def fetch_actor_key(actor):
async def validate(actor, request):
pubkey = await fetch_actor_key(actor)
if not pubkey:
return False
logging.debug('actor key: %r', pubkey)
headers = request.headers.copy()