From eb617f0419b2652dd4d51a0352a99fa9ec477733 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Tue, 25 Aug 2020 14:22:02 +0200 Subject: tests: Store key data in split binary form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- tests/testutil.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/testutil.py') diff --git a/tests/testutil.py b/tests/testutil.py index f95b274..46800b3 100644 --- a/tests/testutil.py +++ b/tests/testutil.py @@ -87,8 +87,10 @@ class HKPServerRequestHandler(BaseHTTPRequestHandler): return self.send_response(200, "OK") - self.send_header("Content-type", "text/plain") + self.send_header("Content-type", "application/pgp-keys") self.end_headers() + # note: technically we should be using ASCII armor here + # but GnuPG seems happy with the binary form too self.wfile.write(self.keys[key]) self.wfile.flush() -- cgit v1.2.3