Revert query response to JSON
This commit is contained in:
parent
9c3ddbfef2
commit
6f21406afd
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user