Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Commit 82442ea

Browse files
author
Joshua Rubin
committed
make sure the default for options is an object, not an array
Signed-off-by: Joshua Rubin <jrubin@zvelo.com>
1 parent ba227bc commit 82442ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stomp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ function Stomp(args) {
235235
this.session = null;
236236
this.ssl = args['ssl'] ? true : false;
237237
this.ssl_validate = args['ssl_validate'] ? true : false;
238-
this.ssl_options = args['ssl_options'] || [];
238+
this.ssl_options = args['ssl_options'] || {};
239239
};
240240

241241
Stomp.prototype = new process.EventEmitter();

0 commit comments

Comments
 (0)