Skip to content

Commit 325c727

Browse files
committed
fix bug with undefined extra arguments
1 parent a317a40 commit 325c727

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/stomp.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ Stomp.prototype._send_command = function(command, headers, body, the_rest) {
122122
if (!this.utils.really_defined(headers))
123123
headers = {};
124124

125+
if (!this.utils.really_defined(the_rest))
126+
the_rest = {};
127+
125128
console.log("HEADERS: " + sys.inspect(headers));
126129
frame_conf = {
127130
'command': command,

0 commit comments

Comments
 (0)