Update server.py

This commit is contained in:
Nova Cat 2025-01-14 19:28:53 -08:00
parent acea7d9654
commit d5dbab890e

View file

@ -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")