Skip to content

Commit

Permalink
fix(message-properties): added missing amqp symbols for two fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Broadstone committed May 21, 2015
1 parent 1e38312 commit d745d85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/types/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ Properties.fromDescribedType = function(describedType) {
to: propertiesArr[idx++],
subject: propertiesArr[idx++],
replyTo: propertiesArr[idx++],
correlationId: propertiesArr[idx++],
contentType: propertiesArr[idx++],
correlationId: propertiesArr[idx++].contents, // AMQPSymbol
contentType: propertiesArr[idx++].contents, // AMQPSymbol
contentEncoding: propertiesArr[idx++],
absoluteExpiryTime: propertiesArr[idx++],
creationTime: propertiesArr[idx++],
Expand All @@ -181,8 +181,8 @@ Properties.prototype.getValue = function() {
subject: u.orNull(self.subject),
replyTo: u.orNull(self.replyTo),
correlationId: u.orNull(self.correlationId),
contentType: u.orNull(self.contentType),
contentEncoding: u.orNull(self.contentEncoding),
contentType: (self.contentType === undefined) ? null : new AMQPSymbol(self.contentType),
contentEncoding: (self.contentEncoding === undefined) ? null : new AMQPSymbol(self.contentEncoding),
absoluteExpiryTime: (self.absoluteExpiryTime === undefined) ? null : new ForcedType('timestamp', self.absoluteExpiryTime),
creationTime: (self.creationTime === undefined) ? null : new ForcedType('timestamp', self.creationTime),
groupId: u.orNull(self.groupId),
Expand Down

0 comments on commit d745d85

Please sign in to comment.