summaryrefslogtreecommitdiff
path: root/tests/testutil.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-08-25 14:22:02 +0200
committerMichał Górny <mgorny@gentoo.org>2020-08-25 14:22:18 +0200
commiteb617f0419b2652dd4d51a0352a99fa9ec477733 (patch)
tree853466c729b904442f5aaac06a782e60eeb14e28 /tests/testutil.py
parentb62ef96fd80bc425d5cae37cffdd19f0ad475ebb (diff)
downloadgemato-eb617f0419b2652dd4d51a0352a99fa9ec477733.tar.gz
tests: Store key data in split binary form
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'tests/testutil.py')
-rw-r--r--tests/testutil.py4
1 files changed, 3 insertions, 1 deletions
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()