mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Based on existing tests and code comments, url.parse() is expected to treat any URL containing user@host as having a hostname. However, it turns out this behavior relies on the URL having a hash which is surprising, to put it mildly. Detect the host even without the hash. PR-URL: https://github.com/nodejs/node/pull/41031 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Myles Borins <myles.borins@gmail.com>
31 KiB
31 KiB