Skip to content

Commit f66d5d8

Browse files
committed
Send body-less DELETE requests. Fixes intercomgh-6.
1 parent 75e5cfb commit f66d5d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intercom/intercom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _call(cls, method, url, params=None):
7777

7878
req_params = {}
7979
headers = { 'User-Agent': 'python-intercom/0.2.6', 'Accept': 'application/json' }
80-
if method in ('POST', 'PUT', 'DELETE'):
80+
if method in ('POST', 'PUT'):
8181
headers['content-type'] = 'application/json'
8282
req_params['data'] = json.dumps(params)
8383
elif method == 'GET':

0 commit comments

Comments
 (0)