From c8ed409e9eb32ed0faeafc6a1d3dc89d665f74c4 Mon Sep 17 00:00:00 2001 From: vakarisz Date: Thu, 7 Jul 2022 12:18:58 +0300 Subject: [PATCH] Island: Change agent_configuration.py POST to parse from json --- monkey/monkey_island/cc/resources/agent_configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/resources/agent_configuration.py b/monkey/monkey_island/cc/resources/agent_configuration.py index 0f9279bba..47be16abc 100644 --- a/monkey/monkey_island/cc/resources/agent_configuration.py +++ b/monkey/monkey_island/cc/resources/agent_configuration.py @@ -24,7 +24,7 @@ class AgentConfiguration(AbstractResource): @jwt_required def post(self): try: - configuration_object = AgentConfigurationObject.from_json(request.data) + configuration_object = AgentConfigurationObject.from_mapping(request.json) self._agent_configuration_repository.store_configuration(configuration_object) return make_response({}, 200) except (InvalidConfigurationError, json.JSONDecodeError) as err: