We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee2c593 commit 5b4b305Copy full SHA for 5b4b305
app/app.py
@@ -18,7 +18,6 @@
18
19
csrf = CSRFProtect(app)
20
21
-
22
def validate_pow(nonce, data, difficulty):
23
# Calculate the sha256 of the concatenated string of 32-bit X-Nonce header and raw body.
24
# This calculation has to match the code on the client side, in index.html.
@@ -117,6 +116,7 @@ def trigger_rebuild():
117
116
return jsonify({"error": "Internal Server Error"}), 500
118
119
@app.route("/data/<path:name>")
+@csrf.exempt
120
def download_file(name):
121
return send_from_directory(
122
"data", name, as_attachment=True
0 commit comments