From fc411f2aa703f40a93366d9be3e4c81898d2101e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 2 Aug 2024 16:26:19 -0500 Subject: Consistently use JSON for all endpoints. --- gn2/wqflask/oauth2/toplevel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn2') diff --git a/gn2/wqflask/oauth2/toplevel.py b/gn2/wqflask/oauth2/toplevel.py index 7ee0773d..bc40a924 100644 --- a/gn2/wqflask/oauth2/toplevel.py +++ b/gn2/wqflask/oauth2/toplevel.py @@ -84,7 +84,7 @@ def authorisation_code(): return redirect("/") return no_token_post( - "auth/token", data=request_data).either( + "auth/token", json=request_data).either( lambda err: __error__(process_error(err)), __success__) flash("AuthorisationError: No code was provided.", "alert-danger") return redirect("/") -- cgit v1.2.3