adding JSON strigify on payload if contentType is json

revert-70aa11f8
Rasika Perera 9 years ago
parent 69e38b3c98
commit 8e7052e012

@ -55,7 +55,7 @@ var invokerUtil = function () {
paramValue.actionMethod = methoad; paramValue.actionMethod = methoad;
paramValue.actionUrl = url; paramValue.actionUrl = url;
paramValue.actionPayload = payload; paramValue.actionPayload = payload;
if(acceptType == "application/json"){ if(contentType == "application/json"){
paramValue.actionPayload = JSON.stringify(payload); paramValue.actionPayload = JSON.stringify(payload);
} }
data.data = JSON.stringify(paramValue); data.data = JSON.stringify(paramValue);

Loading…
Cancel
Save