Skip to content

Commit

Permalink
fix get_presigned_download_url set Expired
Browse files Browse the repository at this point in the history
  • Loading branch information
dt3310321 committed Jun 5, 2018
1 parent b8b3d92 commit 8697ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qcloud_cos/cos_client.py
Original file line number Diff line number Diff line change
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

0 comments on commit 8697ae0

Please sign in to comment.