Merge branch 'upstream'

This commit is contained in:
kjwon15 2018-12-29 13:41:14 +09:00
commit 65c80bca55
2 changed files with 3 additions and 3 deletions

View file

@ -22,8 +22,8 @@ if "actorKeys" not in DATABASE:
pubkey = privkey.publickey()
DATABASE["actorKeys"] = {
"publicKey": pubkey.exportKey('PEM').decode('UTF-8'),
"privateKey": privkey.exportKey('PEM').decode('UTF-8')
"publicKey": pubkey.exportKey('PEM').decode('utf-8'),
"privateKey": privkey.exportKey('PEM').decode('utf-8')
}

View file

@ -7,9 +7,9 @@ host = CONFIG['ap']['host']
note = CONFIG['note']
inboxes = DATABASE.get('relay-list', [])
targets = '<br>'.join([urllib.parse.urlsplit(target).hostname for target in inboxes])
async def default(request):
targets = '<br>'.join([urllib.parse.urlsplit(target).hostname for target in inboxes])
return aiohttp.web.Response(
status=200,
content_type="text/html",