Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FUSION-19874 python-sdk删除cdn域名代码问题修复 #443

Merged
merged 2 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading