summaryrefslogtreecommitdiff
path: root/tests/testutil.py
diff options
context:
space:
mode:
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()