Skip to content

Commit

Permalink
Merge pull request #9 from voloyev/fix_get_body
Browse files Browse the repository at this point in the history
Fix for empty body
  • Loading branch information
polamayster committed Mar 19, 2020
2 parents abd9114 + 721d63e commit dacd4e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bottle_oauthlib/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def extract_params(bottle_request):

if "application/json" in bottle_request.content_type:
try:
body = bottle_request.json
body = bottle_request.json or {}
except (ValueError, AttributeError):
body = {}

Expand Down

0 comments on commit dacd4e8

Please sign in to comment.