Skip to content

Commit

Permalink
Add PATCH method
Browse files Browse the repository at this point in the history
  • Loading branch information
issackelly committed Feb 28, 2016
1 parent 1a88944 commit 2502ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudflare_v4/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def call(self, method, main_endpoint, endpoint=None, params=None, data=None):
else:
response = requests.delete(url, headers=headers)
elif method == 'PATCH':
pass
response = requests.request('PATCH', url, headers=headers, json=data)
else:
raise CloudFlareAPIError('method not supported') # should never happen
self.logger.debug("request url: %s", response.url)
Expand Down

0 comments on commit 2502ef9

Please sign in to comment.