From 6f21406afde1d45a333fc48a86e565e6f696733d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Obernd=C3=B6rfer?= Date: Fri, 9 Aug 2019 17:11:04 +0200 Subject: [PATCH] Revert query response to JSON --- src/route/rest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/route/rest.js b/src/route/rest.js index 627d75c..9ae6faf 100644 --- a/src/route/rest.js +++ b/src/route/rest.js @@ -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); } /**