Update main.py
Browse files
main.py
CHANGED
@@ -42,7 +42,7 @@ def async_task():
|
|
42 |
file = request.files['file']
|
43 |
if file.filename == '':
|
44 |
return jsonify({"error": "No selected file"}), 400
|
45 |
-
file_content = file
|
46 |
headers = dict(request.headers)
|
47 |
if not headers.get("KEY") != os.getenv("KEY"):
|
48 |
return jsonify({"status" : False, "msg" : "Invalid API Key"}), 404
|
|
|
42 |
file = request.files['file']
|
43 |
if file.filename == '':
|
44 |
return jsonify({"error": "No selected file"}), 400
|
45 |
+
file_content = file
|
46 |
headers = dict(request.headers)
|
47 |
if not headers.get("KEY") != os.getenv("KEY"):
|
48 |
return jsonify({"status" : False, "msg" : "Invalid API Key"}), 404
|