diff options
| author | Frederick Muriuki Muriithi | 2024-08-08 09:54:15 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2024-08-08 09:54:15 -0500 |
| commit | 342a2d005cc31290f5bdef88f01521833e70caa5 (patch) | |
| tree | 6b09a0d76186dc86ef4ad320cef6ed6c3de1a1e6 | |
| parent | 62273d5438ce8b8a7b1810b170b01f1db3c78515 (diff) | |
| download | gn-auth-342a2d005cc31290f5bdef88f01521833e70caa5.tar.gz | |
Get data from form too.
| -rw-r--r-- | gn_auth/auth/requests.py | 2 |
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 {} |
