Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Commit bed85b4

Browse files
committed
dont send contentType for DELETE and update version to v27
1 parent d2cbdce commit bed85b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

___forcetk___js___acyini

Whitespace-only changes.

forcetk.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ if (forcetk.Client === undefined) {
124124
forcetk.Client.prototype.setSessionToken = function(sessionId, apiVersion, instanceUrl) {
125125
this.sessionId = sessionId;
126126
this.apiVersion = (typeof apiVersion === 'undefined' || apiVersion === null)
127-
? 'v24.0': apiVersion;
127+
? 'v27.0': apiVersion;
128128
if (typeof instanceUrl === 'undefined' || instanceUrl == null) {
129129
// location.hostname can be of the form 'abc.na1.visual.force.com',
130130
// 'na1.salesforce.com' or 'abc.my.salesforce.com' (custom domains).
@@ -162,7 +162,7 @@ if (forcetk.Client === undefined) {
162162
type: method || "GET",
163163
async: this.asyncAjax,
164164
url: (this.proxyUrl !== null) ? this.proxyUrl: url,
165-
contentType: 'application/json',
165+
contentType: method == "DELETE" ? null : 'application/json',
166166
cache: false,
167167
processData: false,
168168
data: payload,

0 commit comments

Comments
 (0)