Skip to content

Commit

Permalink
Merge pull request parse-community#91 from natanrolnik/master
Browse files Browse the repository at this point in the history
Converts httpRequest body to string if needed
  • Loading branch information
gfosco committed Feb 1, 2016
2 parents 72a956a + 0330245 commit 952ccd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ function addParseCloud() {
options.uri = options.url;
delete options.url;
}
if (typeof options.body === 'object') {
options.body = JSON.stringify(options.body);
}
request(options, (error, response, body) => {
if (error) {
if (callbacks.error) {
Expand Down Expand Up @@ -178,4 +181,3 @@ function getClassName(parseClass) {
module.exports = {
ParseServer: ParseServer
};

0 comments on commit 952ccd4

Please sign in to comment.