aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-02 16:26:19 -0500
committerFrederick Muriuki Muriithi2024-08-02 16:26:40 -0500
commitfc411f2aa703f40a93366d9be3e4c81898d2101e (patch)
tree4118924e2daf4c7df909c8b8b4f540d8956ebe30 /gn2/wqflask
parent5f452aa29099df263b8dd7b41abf5113c3762701 (diff)
downloadgenenetwork2-fc411f2aa703f40a93366d9be3e4c81898d2101e.tar.gz
Consistently use JSON for all endpoints.
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/oauth2/toplevel.py2
1 files changed, 1 insertions, 1 deletions
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("/")