Skip to content

Commit 16e8262

Browse files
authored
FUSION-19874 python-sdk删除cdn域名代码问题修复 (#443)
1 parent 02872ab commit 16e8262

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## 7.12.1(2023-11-20)
3+
* 修复 CDN 删除域名代码问题
4+
25
## 7.12.0(2023-10-08)
36
* 对象存储,分片上传支持并发上传
47

qiniu/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# flake8: noqa
1111

12-
__version__ = '7.12.0'
12+
__version__ = '7.12.1'
1313

1414
from .auth import Auth, QiniuMacAuth
1515

qiniu/services/cdn/manager.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def delete_domain(self, name):
238238
- ResponseInfo 请求的Response信息
239239
"""
240240
url = '{0}/domain/{1}'.format(self.server, name)
241-
return self.__get(url)
241+
return self.__del(url)
242242

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

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

316320
def create_timestamp_anti_leech_url(host, file_name, query_string, encrypt_key, deadline):
317321
"""

0 commit comments

Comments
 (0)