FGRibreau/node-amqp-tool — pull request #2 by alexdeleon (2012-09-18 10:06:45+00:00)
Title: Fix to correctly publish messages.

I was unable to use node-amqp-tool since the import process always ends up filling the destination queue with json messages instead of the original message data.

According to the documentation of node-amqp[1], when publishing to an exchange, you can pass either an Object or a Buffer congaing the message data. This change uses the Buffer approach which seem to work with both pain text messages and binary messages.

I hope you find this fix applicable for node-amqp-tool

[1] https://github.com/postwait/node-amqp#exchangepublishroutingkey-message-options

Thanks for this great tool! Cheers,
Alex