diff --git a/monkey/infection_monkey/send_all_events_to_island.py b/monkey/infection_monkey/send_all_events_to_island.py index 4e03a5239..cd3c449c1 100644 --- a/monkey/infection_monkey/send_all_events_to_island.py +++ b/monkey/infection_monkey/send_all_events_to_island.py @@ -76,8 +76,7 @@ class send_all_events_to_island: try: requests.post( # noqa: DUO123 EVENTS_API_URL % (self._server_address,), - data=events, - headers={"content-type": "application/json"}, + json=events, verify=False, timeout=MEDIUM_REQUEST_TIMEOUT, )