File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def self.parse(connection_string)
34
34
opts [ :scheme ] = uri . scheme
35
35
opts [ :user ] = ::CGI ::unescape ( uri . user ) if uri . user
36
36
opts [ :pass ] = ::CGI ::unescape ( uri . password ) if uri . password
37
- opts [ :host ] = uri . host if uri . host
37
+ opts [ :host ] = uri . host if uri . host and uri . host != ""
38
38
opts [ :port ] = uri . port || AMQP_DEFAULT_PORTS [ uri . scheme ]
39
39
opts [ :ssl ] = uri . scheme . to_s . downcase =~ /amqps/i # TODO: rename to tls
40
40
if uri . path =~ %r{^/(.*)}
Original file line number Diff line number Diff line change 30
30
let ( :uri ) { "amqp://" }
31
31
32
32
# Note that according to the ABNF, the host component may not be absent, but it may be zero-length.
33
- it "falls back to default nil host " do
33
+ it "falls back to a blank value " do
34
34
expect ( subject [ :host ] ) . to be_nil
35
35
end
36
36
end
You can’t perform that action at this time.
0 commit comments