From 21118c0b1df0644978ce3374be732f0f2c02fd66 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Tue, 15 Aug 2017 16:27:12 +0800 Subject: [PATCH] Fix string in hkp --- src/route/hkp.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/route/hkp.js b/src/route/hkp.js index 15372a3..5bd1f4a 100644 --- a/src/route/hkp.js +++ b/src/route/hkp.js @@ -129,8 +129,7 @@ class HKP { const algo = (key.algorithm.indexOf('rsa') !== -1) ? 1 : ''; const created = key.created ? (key.created.getTime() / 1000) : ''; - ctx.body = `info:${VERSION}:${COUNT}\n` + - `pub:${fp}:${algo}:${key.keySize}:${created}::\n`; + ctx.body = `info:${VERSION}:${COUNT}\npub:${fp}:${algo}:${key.keySize}:${created}::\n`; for (const uid of key.userIds) { ctx.body += `uid:${encodeURIComponent(`${uid.name} <${uid.email}>`)}:::\n`;