mirror of
https://github.com/csd4ni3l/grass_touching_captcha.git
synced 2026-01-01 12:33:45 +01:00
remove username field which does not exist in upload route
This commit is contained in:
2
main.py
2
main.py
@@ -55,7 +55,7 @@ def resize_image_file(path, max_side=256, fmt="JPEG"):
|
||||
@app.route("/upload", methods=["POST"])
|
||||
def upload():
|
||||
try:
|
||||
image_type, image_data = request.json["username"], request.json["image_type"], request.json["image_data"].encode("utf-8")
|
||||
image_type, image_data = request.json["image_type"], request.json["image_data"].encode("utf-8")
|
||||
|
||||
if image_type == "jpeg":
|
||||
image_data = image_data[23:] # data:image/jpeg;base64,
|
||||
|
||||
Reference in New Issue
Block a user