diff --git a/qcloud_cos/cos_client.py b/qcloud_cos/cos_client.py index f2658111..d3ba6194 100644 --- a/qcloud_cos/cos_client.py +++ b/qcloud_cos/cos_client.py @@ -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), @@ -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={}): """获取签名 diff --git a/qcloud_cos/version.py b/qcloud_cos/version.py index 72954835..267837ae 100644 --- a/qcloud_cos/version.py +++ b/qcloud_cos/version.py @@ -1,2 +1,2 @@ -__version__ = '5.1.7.2' +__version__ = '5.1.7.3' diff --git a/setup.py b/setup.py index c0c497ed..184bbb9f 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ def long_description(): setup( name='cos-python-sdk-v5', - version='1.7.1', + version='1.7.3', url='https://www.qcloud.com/', license='MIT', author='tiedu, lewzylu, channingliu',