diff --git a/lib/urb.js b/lib/urb.js index 10a5aa1f4..9dc381226 100644 --- a/lib/urb.js +++ b/lib/urb.js @@ -189,9 +189,14 @@ window.urb.send = function(params,cb) { params.ship = params.ship || this.ship params.appl = params.appl || this.appl - params.mark = params.mark || "json" params.xyro = params.data || {} + params.mark = params.mark || "json" params.wire = params.wire || "/" + + if(typeof(params.data) === 'undefined') + params.xyro = null + else + params.xyro = params.data url = ["to",params.appl,params.mark]