aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/requests.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn_auth/auth/requests.py')
-rw-r--r--gn_auth/auth/requests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/requests.py b/gn_auth/auth/requests.py
index 6301029..00e9b35 100644
--- a/gn_auth/auth/requests.py
+++ b/gn_auth/auth/requests.py
@@ -3,4 +3,4 @@ from flask import request
def request_json() -> dict:
"""Retrieve the JSON sent in a request."""
- return request.json or {}
+ return request.json or dict(request.form) or {}