We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c754e7f commit e27fe44Copy full SHA for e27fe44
sfdclib/tooling.py
@@ -25,7 +25,7 @@ def _get_headers(self):
25
return {
26
'Authorization': 'Bearer %s' % self._session.get_session_id(),
27
'Accept-Encoding': 'gzip',
28
- 'Content_Type': 'application/json'}
+ 'Content-Type': 'application/json'}
29
30
@staticmethod
31
def _parse_get_post_response(response):
@@ -43,7 +43,7 @@ def get(self, uri):
43
def post(self, uri, data):
44
''' HTTP POST request '''
45
url = self._session.construct_url(self._get_tooling_api_uri() + uri)
46
- response = self._session.post(url, headers=self._get_headers(), json=data)
+ response = self._session.post(url, headers=self._get_headers(), data=data)
47
return self._parse_get_post_response(response)
48
49
def delete(self, uri):
0 commit comments