lib/msgr/client.rb in msgr-0.15.1.1.b150 vs lib/msgr/client.rb in msgr-0.15.1.1.b151
- old
+ new
@@ -193,10 +193,10 @@
config = {}
config[:user] ||= uri.user if uri.user
config[:pass] ||= uri.password if uri.password
config[:host] ||= uri.host if uri.host
config[:port] ||= uri.port if uri.port
- config[:vhost] ||= uri.path if uri.path
+ config[:vhost] ||= uri.path unless uri.path.empty?
config[:ssl] ||= uri.scheme.casecmp('amqps').zero?
config
end
# rubocop:enable all