Skip to content

Commit

Permalink
Merge pull request #22 from cloudblue/upload_file_headers_fix
Browse files Browse the repository at this point in the history
Add content-type to upload report
  • Loading branch information
ffaraone authored Jan 20, 2023
2 parents 7dade2c + affe751 commit 12c2065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)

0 comments on commit 12c2065

Please sign in to comment.