Skip to content

S3 #51

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jun 5, 2018
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