Skip to content

Commit 73d0d3f

Browse files
committed
Fix github API call
1 parent 08f60f1 commit 73d0d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support/manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def release(args):
211211
req = urllib.request.Request(
212212
f'{uploads_url}/{id}/assets?name={package}',
213213
headers={'Content-Type': 'application/zip'} | auth_headers,
214-
data=open('build/fmt/' + package, 'rb'), method='POST')
214+
data=open('build/fmt/' + package, 'rb').read(), method='POST')
215215
with urllib.request.urlopen(req) as response:
216216
if response.status != 201:
217217
raise Exception(f'Failed to upload an asset '

0 commit comments

Comments
 (0)