Revert query response to JSON

This commit is contained in:
Thomas Oberndörfer 2019-08-09 17:11:04 +02:00
parent 9c3ddbfef2
commit 6f21406afd
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class REST {
if (!util.isKeyId(q.keyId) && !util.isFingerPrint(q.fingerprint) && !util.isEmail(q.email)) {
ctx.throw(400, 'Invalid request!');
}
await ctx.render('key-armored', {query: q, key: await this._publicKey.get(q, ctx)});
ctx.body = await this._publicKey.get(q, ctx);
}
/**