From 73d0d3f75d9f7a3cbfc0cb2b6295c440557e460c Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 25 Dec 2024 08:27:59 -0800 Subject: [PATCH] Fix github API call --- support/manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/manage.py b/support/manage.py index b438a54cac07..ff463e0e17be 100755 --- a/support/manage.py +++ b/support/manage.py @@ -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 '