Skip to content

Commit

Permalink
fix(SaslInit): use coerce for mechanisms member
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Oct 12, 2015
1 parent f94e836 commit abb81bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/frames/sasl_frame.js
Expand Up @@ -214,8 +214,7 @@ function SaslInit(options) {
this.hostname = up.get(options, 2);
} else {
u.assertArguments(options, ['mechanism']);
this.mechanism = (options.mechanism instanceof AMQPSymbol) ?
options.mechanism : new AMQPSymbol(options.mechanism);
this.mechanism = u.coerce(options.mechanism, AMQPSymbol);
this.initialResponse = options.initialResponse;
this.hostname = options.hostname;
}
Expand Down

0 comments on commit abb81bd

Please sign in to comment.