5m4ck3r commited on
Commit
f3d653b
·
verified ·
1 Parent(s): 6a322d3

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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.read()
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