Skip to content

Commit

Permalink
fix(SaslInitFrame): mechanism _must_ be an amqp symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Oct 11, 2015
1 parent c95b741 commit b8c7e84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/frames/sasl_frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ function SaslInit(options) {
this.hostname = up.get(options, 2);
} else {
u.assertArguments(options, ['mechanism']);
this.mechanism = options.mechanism;
this.mechanism = (options.mechanism instanceof AMQPSymbol) ?
options.mechanism : new AMQPSymbol(options.mechanism);
this.initialResponse = options.initialResponse;
this.hostname = options.hostname;
}
Expand Down

0 comments on commit b8c7e84

Please sign in to comment.