Open konstantinblaesi opened 6 years ago
URL, Firefox, Chrome and curl agree, they rewrite https:///
to https://
. URL, Chrome and Firefox even rewrite https:////
, but curl reports curl: (3) Bad URL
.
The question is for which schemes/protocols this should apply, an obvious exception is file://
.
Do you want to give this a try?
url._parts looks like this:
When setting
URI.preventInvalidHostname = true;
is thrown. This was initially reported for simplecrawler/simplecrawler#415. Chrome handles the URL without issues. Do you think URI.js should be more liberal and fix the URL before parsing it?