squaremo/amqp.node — pull request #68 by ctavan (2014-06-03 20:08:52+00:00)
Title: Correctly handle vhost in connection urls.

It is possible to pass the url of a RabbitMQ server in the format

ampq://user:pass@hostname:port/vhost

However the leading slash for the vhost was mistakenly stripped which caused
urls that included a path not to work properly. This patch fixes the issue.

----

I briefly looked into writing a test for this but I think we'd need to expose more from `lib/connect.js` to achieve this.