aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pygithub3/services/repos/downloads.py6
-rw-r--r--requirements/base.txt2
2 files changed, 4 insertions, 4 deletions
diff --git a/pygithub3/services/repos/downloads.py b/pygithub3/services/repos/downloads.py
index 47c7785..25114a5 100644
--- a/pygithub3/services/repos/downloads.py
+++ b/pygithub3/services/repos/downloads.py
@@ -72,9 +72,9 @@ class Downloads(Service):
# TODO: improve it. e.g Manage all with file desc
def upload(file_path):
""" """
- body = download.ball_to_upload()
- body['file'] = (file_path, open(file_path, 'rb'))
- return requests.post(download.s3_url, files=body)
+ data = download.ball_to_upload()
+ files = {'File': open(file_path, 'rb')}
+ return requests.post(download.s3_url, data=data, files=files)
download.upload = upload
return download
diff --git a/requirements/base.txt b/requirements/base.txt
index 285540e..f62b4f8 100644
--- a/requirements/base.txt
+++ b/requirements/base.txt
@@ -1 +1 @@
-requests >= 0.12.1
+requests >= 0.13.1