Skip to content

Commit

Permalink
Fix headers handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasil coylOne Kulakov committed May 25, 2017
1 parent 659961a commit f508bf1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/EventBand/Transport/AmqpLib/AmqpMessageUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ final class AmqpMessageUtils
const DELIVERY_MODE_PERSISTENT = 2;

private static $PROPERTY_MAP = [
'headers' => 'application_headers',
'contentType' => 'content_type',
'contentEncoding' => 'content_encoding',
'messageId' => 'message_id',
Expand All @@ -52,6 +51,9 @@ public static function createMessage(AmqpLibMessage $message)
$properties[$name] = $message->get($amqpLibName);
}
}
if ($message->has('application_headers')) {
$properties['headers'] = $message->get('application_headers')->getNativeData();
}

return CustomAmqpMessage::fromProperties($properties);
}
Expand Down

0 comments on commit f508bf1

Please sign in to comment.