kevinohara80 / nforce

nforce is a node.js salesforce REST API wrapper for force.com, database.com, and salesforce.com
MIT License
474 stars 167 forks source link

apexRest doesn't stringify body #170

Open kevinohara80 opened 5 years ago

kevinohara80 commented 5 years ago

The body argument for the apexRest call needs to be stringified before sending to _apiRequest. For backwards compatibility sake, we should check to see if the body argument is actually an object before stringifying it. All other POST methods should do the same check.