Skip to content

Commit

Permalink
[FIX] - base_rest: fix missing params
Browse files Browse the repository at this point in the history
  • Loading branch information
sbejaoui committed Aug 22, 2023
1 parent 23dabc9 commit 5c08d8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base_rest/components/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def dispatch(self, method_name, *args, params=None):
"""
method = getattr(self, method_name, object())
params = params or {}
if request and request.get_json_data():
params.update(request.get_json_data())
secure_params = self._prepare_input_params(method, params)
if isinstance(secure_params, dict):
# for backward compatibility methods expecting json params
Expand Down

0 comments on commit 5c08d8c

Please sign in to comment.