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 b8c759e commit fcbb8a7Copy full SHA for fcbb8a7
forcetk.js
@@ -292,7 +292,8 @@ if (forcetk.Client === undefined) {
292
293
var request = new XMLHttpRequest();
294
request.open("POST", (this.proxyUrl !== null && ! this.visualforce) ? this.proxyUrl: url, this.asyncAjax);
295
-
+
296
+ request.setRequestHeader('Accept', 'application/json');
297
request.setRequestHeader(this.authzHeader, "Bearer " + this.sessionId);
298
request.setRequestHeader('X-User-Agent', 'salesforce-toolkit-rest-javascript/' + this.apiVersion);
299
if (this.proxyUrl !== null && ! this.visualforce) {
0 commit comments