Skip to content

Commit

Permalink
delete cdn domain
Browse files Browse the repository at this point in the history
  • Loading branch information
cuiwenyang authored and cuiwenyang committed Nov 20, 2023
1 parent 02872ab commit 87cb778
Showing 1 changed file with 5 additions and 1 deletion.
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 87cb778

Please sign in to comment.