mirror of
https://github.com/fmtlib/fmt.git
synced 2025-09-08 12:02:51 -04:00
Fix github API call
This commit is contained in:
parent
08f60f1efc
commit
73d0d3f75d
@ -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 '
|
||||
|
Loading…
x
Reference in New Issue
Block a user