Skip to content

Commit 7602317

Browse files
author
Joel Collins
committed
Attempt JSON parsing in use_body
1 parent e3edb3f commit 7602317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/labthings/marshalling/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def wrapper(*args, **kwargs):
2626
2727
"""
2828
# Get data from request
29-
data = request.data or None
29+
data = request.get_json(silent=True) or request.data or None
3030

3131
# If no data is there
3232
if not data:

0 commit comments

Comments
 (0)