We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 928a0a4 commit 6a0e50aCopy full SHA for 6a0e50a
lib/connect/index.js
@@ -73,8 +73,8 @@ function connect (brokerUrl, opts) {
73
opts.pathname = parsed.pathname
74
opts.port = Number(parsed.port) || null
75
opts.protocol = parsed.protocol
76
- opts.username = opts.username || parsed.username
77
- opts.password = opts.password || parsed.password
+ opts.username = opts.username || parsed.username || null
+ opts.password = opts.password || parsed.password || null
78
opts.search = parsed.search
79
opts.searchParams = parsed.searchParams
80
opts.path = parsed.pathname + parsed.search
0 commit comments