Skip to content

Commit

Permalink
adding content type for attachments for IE 11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpat09 committed Oct 2, 2015
1 parent f766bb0 commit f05d17c
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 @@ -296,6 +296,7 @@ if (forcetk.Client === undefined) {
request.setRequestHeader('Accept', 'application/json');
request.setRequestHeader(this.authzHeader, "Bearer " + this.sessionId);
request.setRequestHeader('X-User-Agent', 'salesforce-toolkit-rest-javascript/' + this.apiVersion);
request.setRequestHeader('Content-Type', 'multipart/form-data; boundary=\"boundary_' + boundary + '\"');
if (this.proxyUrl !== null && ! this.visualforce) {
request.setRequestHeader('SalesforceProxy-Endpoint', url);
}
Expand Down

0 comments on commit f05d17c

Please sign in to comment.