Update server.py

This commit is contained in:
Nova Cat 2025-01-14 19:34:33 -08:00
parent 47148dd76e
commit 59ab3d3ee2

View file

@ -45,8 +45,9 @@ 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())
resp = make_response(zip_buffer.getvalue(), mimetype="application/zip")
resp.set_cookie('GFG','ComputerScience Portal')
resp = make_response(zip_buffer.getvalue())
resp.set_cookie('certname',random_name)
resp.mimetype = "application/zip"
return resp
@app.route("/style.css")
def style():