Update server.py
This commit is contained in:
parent
acea7d9654
commit
d5dbab890e
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ def gencert():
|
|||
for file_name, data in [('cert.pem', io.BytesIO(crypto.dump_certificate(crypto.FILETYPE_PEM, cert))),
|
||||
('privkey.pem', io.BytesIO(crypto.dump_privatekey(crypto.FILETYPE_PEM, k)))]:
|
||||
zip_file.writestr(file_name, data.getvalue())
|
||||
return zip_buffer.getvalue()
|
||||
return Response(zip_buffer.getvalue(), mimetype="application/zip")
|
||||
@app.route("/style.css")
|
||||
def style():
|
||||
return send_file("style.css")
|
||||
|
|
Loading…
Add table
Reference in a new issue