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

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