Skip to content

Commit e27fe44

Browse files
authored
Fixes in post and default headers
1 parent c754e7f commit e27fe44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sfdclib/tooling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _get_headers(self):
2525
return {
2626
'Authorization': 'Bearer %s' % self._session.get_session_id(),
2727
'Accept-Encoding': 'gzip',
28-
'Content_Type': 'application/json'}
28+
'Content-Type': 'application/json'}
2929

3030
@staticmethod
3131
def _parse_get_post_response(response):
@@ -43,7 +43,7 @@ def get(self, uri):
4343
def post(self, uri, data):
4444
''' HTTP POST request '''
4545
url = self._session.construct_url(self._get_tooling_api_uri() + uri)
46-
response = self._session.post(url, headers=self._get_headers(), json=data)
46+
response = self._session.post(url, headers=self._get_headers(), data=data)
4747
return self._parse_get_post_response(response)
4848

4949
def delete(self, uri):

0 commit comments

Comments
 (0)