Skip to content

Commit

Permalink
FUSION-19874 python-sdk删除cdn域名代码问题修复 (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wintercom authored Nov 20, 2023
1 parent 02872ab commit 16e8262
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## 7.12.1(2023-11-20)
* 修复 CDN 删除域名代码问题

## 7.12.0(2023-10-08)
* 对象存储,分片上传支持并发上传

Expand Down
2 changes: 1 addition & 1 deletion qiniu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# flake8: noqa

__version__ = '7.12.0'
__version__ = '7.12.1'

from .auth import Auth, QiniuMacAuth

Expand Down
6 changes: 5 additions & 1 deletion qiniu/services/cdn/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def delete_domain(self, name):
- ResponseInfo 请求的Response信息
"""
url = '{0}/domain/{1}'.format(self.server, name)
return self.__get(url)
return self.__del(url)

def get_domain(self, name):
"""
Expand Down Expand Up @@ -312,6 +312,10 @@ def __get(self, url, data=None):
headers = {'Content-Type': 'application/json'}
return http._get_with_auth_and_headers(url, data, self.auth, headers)

def __del(self, url, data=None):
headers = {'Content-Type': 'application/json'}
return http._delete_with_qiniu_mac_and_headers(url, data, self.auth, headers)


def create_timestamp_anti_leech_url(host, file_name, query_string, encrypt_key, deadline):
"""
Expand Down

0 comments on commit 16e8262

Please sign in to comment.