Skip to content

Commit

Permalink
potential fix for webhook failures
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Jul 26, 2024
1 parent c8d72dd commit 090bcf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/tacticalrmm/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ def _run_url_rest_action(*, url: str, method, body: str, headers: str, instance=
new_body = find_and_replace_db_values_str(text=body, instance=instance)
new_headers = find_and_replace_db_values_str(text=headers, instance=instance)
new_url = requote_uri(new_url)
new_body = json.loads(new_body)
new_headers = json.loads(new_headers)
new_body = json.loads(new_body, strict=False)
new_headers = json.loads(new_headers, strict=False)

if method in ("get", "delete"):
return getattr(requests, method)(new_url, headers=new_headers)
Expand Down

0 comments on commit 090bcf8

Please sign in to comment.