From 4bc8dc09bc521650376f9ab6489c1c2cff06ba77 Mon Sep 17 00:00:00 2001 From: LufsX Date: Sat, 28 Sep 2024 00:56:49 +0800 Subject: [PATCH] chore: fix typo in code --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 8533bb5..17252f4 100644 --- a/app.py +++ b/app.py @@ -136,7 +136,7 @@ def get_top_scores(): response = jsonify(top_scores) response.headers.add("Access-Control-Allow-Origin", "*") - scores.headers.add("Cache-Control", "public, max-age=300") + response.headers.add("Cache-Control", "public, max-age=300") return response except Exception as e: return jsonify({"error": str(e)}), 500