mbroadst / qamqp

AMQP 0.9.1 implementation for Qt
Other
151 stars 127 forks source link

Updated qamqpclient.cpp #76

Open zuzoid opened 5 years ago

zuzoid commented 5 years ago

Fixed empty virtualHost variable while trying to deduce it from uri

zuzoid commented 5 years ago

¯\(ツ)

I checked it on my test instance (rabbitmq 3.3.5-34, CentOS 7), configured for two vhosts: "/" and "/vhost_test", test app with qamqp built with qt5.12.2.

I am see the following picture:

without hotfix: connecting to "amqp://guest:guest@rmq_test:5672" - FAILED "amqp://guest:guest@rmq_test:5672/" - OK "amqp://guest:guest@rmq_test:5672/vhost_test" - OK "amqp://guest:guest@rmq_test:5672/vhost_test/" - FAILED

after hotfix: "amqp://guest:guest@rmq_test:5672" - OK "amqp://guest:guest@rmq_test:5672/" - OK "amqp://guest:guest@rmq_test:5672/vhost_test" - OK "amqp://guest:guest@rmq_test:5672/vhost_test/" - FAILED