From 59ab3d3ee2a108f97c088c9ab8fb00af5d38b193 Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 14 Jan 2025 19:34:33 -0800 Subject: [PATCH] Update server.py --- server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index ef1b2c3..b9ff48e 100644 --- a/server.py +++ b/server.py @@ -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():