Skip to content

Commit

Permalink
Merge pull request #96 from dt3310321/s3
Browse files Browse the repository at this point in the history
S3
  • Loading branch information
dt3310321 authored Aug 23, 2019
2 parents 65efe28 + a5ed160 commit e859ec7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qcloud_cos/cos_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def uri(self, bucket, path=None, endpoint=None):
if path[0] == u'/':
path = path[1:]
path = quote(to_bytes(path), '/-_.~')
path = path.replace('./', '.%2F')
request_url = u"{scheme}://{url}/{path}".format(
scheme=to_unicode(scheme),
url=to_unicode(url),
Expand Down Expand Up @@ -163,6 +164,10 @@ def __init__(self, conf, retry=1, session=None):
else:
self._session = session

def get_conf():
"""获取配置"""
return self._conf

def get_auth(self, Method, Bucket, Key, Expired=300, Headers={}, Params={}):
"""获取签名
Expand Down

0 comments on commit e859ec7

Please sign in to comment.