Skip to content

Commit

Permalink
Fix github API call
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Dec 25, 2024
1 parent 08f60f1 commit 73d0d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def release(args):
req = urllib.request.Request(
f'{uploads_url}/{id}/assets?name={package}',
headers={'Content-Type': 'application/zip'} | auth_headers,
data=open('build/fmt/' + package, 'rb'), method='POST')
data=open('build/fmt/' + package, 'rb').read(), method='POST')
with urllib.request.urlopen(req) as response:
if response.status != 201:
raise Exception(f'Failed to upload an asset '
Expand Down

0 comments on commit 73d0d3f

Please sign in to comment.