diff --git a/index.js b/index.js index ec936e0..9f83367 100644 --- a/index.js +++ b/index.js @@ -372,7 +372,7 @@ function Url(address, location, parser) { url.username = url.password = ''; if (url.auth) { instruction = url.auth.split(':'); - url.username = instruction[0] || ''; + url.username = instruction[0]; url.password = instruction[1] || ''; }