Skip to content

Commit

Permalink
Fixing RPC boolean data response
Browse files Browse the repository at this point in the history
A `data` value of `false` was simply being discarded.
  • Loading branch information
Tiago Alves committed Nov 24, 2014
1 parent 94fc5bc commit 2b7f227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/remoteCalls/RemoteCalls.js
Expand Up @@ -403,7 +403,7 @@ RemoteCalls.prototype.response = function (originalHeader, success, message, dat
if (message) {
msg.m = message;
}
if (data) {
if (typeof data !== 'undefined') {
msg.d = data;
}

Expand Down

0 comments on commit 2b7f227

Please sign in to comment.