From bd5b62208420ca259d4d3de8385fd8f1ee2fba3d Mon Sep 17 00:00:00 2001 From: Strahinja Jacimovic Date: Thu, 31 Oct 2024 12:48:37 +0100 Subject: [PATCH] Update package.py --- scripts/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/package.py b/scripts/package.py index 95115cf40..de8d66eb8 100644 --- a/scripts/package.py +++ b/scripts/package.py @@ -63,7 +63,8 @@ def upload_asset_to_release(repo, release_id, asset_path, token, delete_existing asset_name = os.path.basename(asset_path) url = f'https://api.github.com/repos/{repo}/releases/{release_id}/assets' headers = { - 'Authorization': f'token {token}' + 'Authorization': f'token {token}', + 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36' } # Handle pagination to get all assets