From 909e7dcca05e04f69fd0efc27abda232cd386dc7 Mon Sep 17 00:00:00 2001 From: xyuanmu Date: Thu, 24 Mar 2016 20:04:35 +0800 Subject: [PATCH] Use appropriate header for install as CA see https://github.com/XX-net/XX-Net/commit/e55f8fac67eaae12f11e69d0e69644cc714dd214 --- lib/pac_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pac_server.py b/lib/pac_server.py index b02e0a7..1e22c98 100644 --- a/lib/pac_server.py +++ b/lib/pac_server.py @@ -383,7 +383,7 @@ def do_GET(self): self.wfile.write(('HTTP/1.1 200\r\nContent-Type: %s\r\nContent-Length: %s\r\n\r\n' % (mimetype, len(data))).encode()) self.wfile.write(data) elif filename == 'ca.crt': - mimetype = 'application/octet-stream' + mimetype = 'application/x-x509-ca-cert' cer_filename = get_file(filename) if cer_filename: data = open(cer_filename, 'rb').read()