onboarding app: serve certs inline to unbreak firefox

This commit is contained in:
Maximilian Hils 2015-03-19 16:29:05 +01:00
parent 51856b7ccd
commit 97c6d7ed25

View File

@ -45,7 +45,7 @@ class PEM(tornado.web.RequestHandler):
def get(self):
p = os.path.join(self.request.master.server.config.cadir, self.filename)
self.set_header("Content-Type", "application/x-x509-ca-cert")
self.set_header("Content-Disposition", "attachment; filename={}".format(self.filename))
self.set_header("Content-Disposition", "inline; filename={}".format(self.filename))
with open(p, "rb") as f:
self.write(f.read())
@ -59,7 +59,7 @@ class P12(tornado.web.RequestHandler):
def get(self):
p = os.path.join(self.request.master.server.config.cadir, self.filename)
self.set_header("Content-Type", "application/x-pkcs12")
self.set_header("Content-Disposition", "attachment; filename={}".format(self.filename))
self.set_header("Content-Disposition", "inline; filename={}".format(self.filename))
with open(p, "rb") as f:
self.write(f.read())