Hacker News new | ask | show | jobs
by valicord 760 days ago
If you're expecting a string to be a URL, failing to parse it as a URL is indeed an unexpected situation.
1 comments

An invalid URL in a config file is exceptional. An invalid URL typed in by a user or from an external source (eg the body of an API request or inside of some HTML) is Tuesday.