Remove "Content-Type" Header from requests with no request body

This commit is contained in:
George Sibble 2013-04-06 13:54:59 -07:00
parent 3f3471997e
commit 8443e7a749
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ class ApiClient:
for param, value in headerParams.iteritems():
headers[param] = value
headers['Content-type'] = 'application/json'
#headers['Content-type'] = 'application/json'
headers['api_key'] = self.apiKey
if self.cookie:

View File

@ -35,7 +35,7 @@ class ApiClient:
for param, value in headerParams.items():
headers[param] = value
headers['Content-type'] = 'application/json'
#headers['Content-type'] = 'application/json'
headers['api_key'] = self.apiKey
if self.cookie: