Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Ensure gateway requests sends an array
Browse files Browse the repository at this point in the history
  • Loading branch information
TATDK committed Mar 12, 2014
1 parent 53a914e commit d000f9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ function sendRPC(name, args, callback) {
}

function sendGateway(name, args, successCallback, failureCallback) {
args = args === undefined ? [] : args;
if (!util.isArray(args))
args = [args];
var bodyString = JSON.stringify({
service: name,
body: args
Expand Down

0 comments on commit d000f9d

Please sign in to comment.