Skip to content

Commit 99b4763

Browse files
authored
Merge pull request #606 from sassanh/master
Ignoring requests containing list instead of dict
2 parents 86e8f9b + a44f536 commit 99b4763

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

oauth2_provider/oauth2_backends.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ def extract_body(self, request):
180180
"""
181181
try:
182182
body = json.loads(request.body.decode("utf-8")).items()
183+
except AttributeError:
184+
body = ""
183185
except ValueError:
184186
body = ""
185187

0 commit comments

Comments
 (0)