Skip to content

Commit

Permalink
Merge pull request #34 from Liuchang0812/patch-4
Browse files Browse the repository at this point in the history
Update cos_op.py
  • Loading branch information
liuchang23 authored Jul 13, 2017
2 parents 084c89b + 8bb04c4 commit 8e887e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qcloud_cos/cos_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ def _upload_slice_file(self, request):

local_path = request.get_local_path()
file_size = os.path.getsize(local_path)
slice_size = control_ret[u'data'][u'slice_size']
if u'slice_size' in control_ret[u'data']:
slice_size = control_ret[u'data'][u'slice_size']
offset = 0
session = control_ret[u'data'][u'session']
# ?concurrency
Expand Down

0 comments on commit 8e887e6

Please sign in to comment.