mirror of
https://github.com/zebrajr/ladybird.git
synced 2026-01-15 12:15:15 +00:00
LibURL parses "localhost:8000" as a URL with a scheme of "localhost" and basename of "8000". Similar to "mailto:" URLs. We then drop the URL as having an invalid scheme. Let's explicitly check for such localhost URLs here and prepend a valid scheme, as it is a bit of a special case.