Skip to content
Merged

S3 #51

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions qcloud_cos/cos_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, Appid=None, Region=None, Secret_id=None, Secret_key=None, Tok
self._timeout = Timeout

if Scheme is None:
Scheme = u'http'
Scheme = u'https'
Scheme = to_unicode(Scheme)
if(Scheme != u'http' and Scheme != u'https'):
raise CosClientError('Scheme can be only set to http/https')
Expand Down Expand Up @@ -306,7 +306,7 @@ def get_presigned_download_url(self, Bucket, Key, Expired=300):
)
"""
url = self._conf.uri(bucket=Bucket, path=Key)
sign = self.get_auth(Method='GET', Bucket=Bucket, Key=Key, Expired=300)
sign = self.get_auth(Method='GET', Bucket=Bucket, Key=Key, Expired=Expired)
url = url + '?sign=' + quote(sign)
return url

Expand Down