If the user or the password component of auth contains colons, url.parse() fails. ``` javascript var url = require('url'); var user = encodeURIComponent('us:er'); var password = encodeURIComponent('pass:word'); var uri = 'http://' + user + ':' + password + '@localhost/'; console.log(uri); // http://us%3Aer:pass%3Aword@localhost/ var parsed = url.parse(uri); console.log(parsed.auth); // us:er:pass:word ``` The output of parse() is not understood by format(). ``` javascript console.log(url.format(parsed)); // http://us:er%3Apass%3Aword@localhost/ ``` I think auth needs to be split into two fields (username and password).
If the user or the password component of auth contains colons, url.parse() fails.
The output of parse() is not understood by format().
I think auth needs to be split into two fields (username and password).