From 342a2d005cc31290f5bdef88f01521833e70caa5 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 8 Aug 2024 09:54:15 -0500 Subject: Get data from form too. --- gn_auth/auth/requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn_auth') 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 {} -- cgit v1.2.3