Skip to content

Commit

Permalink
Fix for empty body
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Yevtushenko committed Mar 19, 2020
1 parent f96fff6 commit f8646b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bottle_oauthlib/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def extract_params(bottle_request):
if "application/json" in bottle_request.content_type:
try:
body = bottle_request.json
if body:
pass
else:
body = {}
except (ValueError, AttributeError):
body = {}

Expand Down

0 comments on commit f8646b3

Please sign in to comment.