From 0f04ec68a918d3bb59f20a2574f5130ff9871e22 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 11 Aug 2018 07:57:45 -0700 Subject: [PATCH] Fix package upload (#828) --- support/manage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/manage.py b/support/manage.py index d89ff357..9bd2e489 100755 --- a/support/manage.py +++ b/support/manage.py @@ -247,7 +247,8 @@ def release(args): package = 'fmt-{}.zip'.format(version) r = requests.post( '{}/{}/assets?name={}'.format(uploads_url, id, package), - params=params, files={package: open('build/fmt/' + package, 'rb')}) + headers={'Content-Type': 'application/zip'}, + params=params, data=open('build/fmt/' + package, 'rb')) if r.status_code != 201: raise Exception('Failed to upload an asset ' + str(r))