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

View File

@ -62,7 +62,7 @@ class REST {
if (!util.isKeyId(q.keyId) && !util.isFingerPrint(q.fingerprint) && !util.isEmail(q.email)) { if (!util.isKeyId(q.keyId) && !util.isFingerPrint(q.fingerprint) && !util.isEmail(q.email)) {
ctx.throw(400, 'Invalid request!'); 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);
} }
/** /**