Skip to content

Commit

Permalink
Accept JSON from API
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat Patterson committed May 28, 2015
1 parent 0dcaf13 commit f177720
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions forcetk.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ if (forcetk.Client === undefined) {
var request = new XMLHttpRequest();
request.open("POST", (this.proxyUrl !== null && ! this.visualforce) ? this.proxyUrl: url, this.asyncAjax);

request.setRequestHeader('Accept', 'application/json');
request.setRequestHeader(this.authzHeader, "Bearer " + this.sessionId);
request.setRequestHeader('X-User-Agent', 'salesforce-toolkit-rest-javascript/' + this.apiVersion);
if (this.proxyUrl !== null && ! this.visualforce) {
Expand Down

0 comments on commit f177720

Please sign in to comment.