Closed
Description
require("url").resolve(
"http://user:[email protected]:80/path/resource.html?query#hash",
"http://fakeurl.com/path/resource.html?query#hash"
);
produces http://user:[email protected]/path/resource.html?query#hash
Node.js has been doing this for as long as I've been using it. How can it be correct to add auth information from one absolute url to another absolute url?