From 8c100e440e2f9eec447dbe79f20e188d68f66f7f Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 11 Apr 2023 19:15:31 +0200 Subject: [PATCH] Super confused between request.data, .form, .json ... --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 0c79dda..49a027e 100644 --- a/app.py +++ b/app.py @@ -129,7 +129,7 @@ def delete_using_recovery_password_or_key(subdomain): try: assert isinstance(subdomain, str) - data = dict(request.data) # get_json(force=True) + data = dict(request.form) # get_json(force=True) recovery_password = data.get("recovery_password") key = data.get("key") assert (recovery_password and isinstance(recovery_password, str)) or (