From affe751366c9c60d724ed8239afbb84410573eb9 Mon Sep 17 00:00:00 2001 From: Aleksandra Ovchinnikova Date: Fri, 20 Jan 2023 12:26:10 +0100 Subject: [PATCH] Add content-type to upload report --- executor/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executor/utils.py b/executor/utils.py index e76828d..3363e65 100644 --- a/executor/utils.py +++ b/executor/utils.py @@ -121,6 +121,6 @@ def upload_file(client, report_name, report_id, owner_id): ) return client.ns('reporting').reports[report_id].action('upload').post( - data={'file': {'id': json.loads(media_file)['id']}}, + payload={'file': {'id': json.loads(media_file)['id']}}, headers=get_user_agent(), )