Skip to content

Commit

Permalink
Merge pull request #21 from zhangshsy/CLOUDSRV-4044-reviewed
Browse files Browse the repository at this point in the history
fix CLOUDSRV-4044 sel field doesn't seem to work for query
  • Loading branch information
Wei Kong committed Sep 25, 2014
2 parents 9e64166 + 6bfbdc8 commit 3c80c96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions lib/util/utils.js
Expand Up @@ -86,6 +86,13 @@ exports.populateOAuthParameters = function(parameters, oauthKey) {
};

exports.sendRequest = function(host, port, path, method, data, header, useSecure, callback, sdk) {
var keys = Object.keys(data);
for(var i in keys) {
if(Object.prototype.toString.call(data[keys[i]]) === '[object Object]') {
data[keys[i]] = JSON.stringify(data[keys[i]])
}
}

var request_data = querystring.stringify(data);
if(!header) {
header = {};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -5,7 +5,7 @@
"appcelerator",
"acs"
],
"version": "0.9.2",
"version": "0.9.3",
"author": "Appcelerator, Inc. <info@appcelerator.com>",
"maintainers": [
{
Expand Down

0 comments on commit 3c80c96

Please sign in to comment.