mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
onboarding app: serve certs inline to unbreak firefox
This commit is contained in:
parent
51856b7ccd
commit
97c6d7ed25
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user