Skip to content

Commit

Permalink
Update to 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wwakabobik committed Jan 16, 2024
1 parent 47abd25 commit 8023d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testrail_api_reporter/utils/reporter_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def upload_image(filename, api_token):
:param api_token: unique API token for image upload on https://freeimage.host
:return: dict with urls with image itself and its thumbnail
"""
payload = {"type": "file", "action": "upload", "key": api_token}
payload = {"action": "upload", "key": api_token, "format": "json"}
with open(filename, "rb") as source_file:
response = requests.post(
url="https://freeimage.host/api/1/upload",
Expand Down

0 comments on commit 8023d85

Please sign in to comment.