From 61b2377cf2c02f1143bd0d73bb68231af1e0d18e Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 15 Oct 2013 09:04:05 +0800 Subject: [PATCH] Use stream-uploading to upload the asset to GitHub. --- script/upload.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/upload.py b/script/upload.py index 026abb14d75c..ac95a4859a0b 100755 --- a/script/upload.py +++ b/script/upload.py @@ -135,9 +135,8 @@ def upload_atom_shell(github, release_id, file_path): params = {'name': os.path.basename(file_path)} headers = {'Content-Type': 'application/zip'} with open(file_path, 'rb') as f: - data = f.read() github.repos(ATOM_SHELL_REPO).releases(release_id).assets.post( - params=params, headers=headers, data=data, verify=False) + params=params, headers=headers, data=f, verify=False) def publish_release(github, release_id):