mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibCore: Remove URL validity check for parsing URL's
Now that URL does not implicitly construct from a String, it is safe to rely on always being passed a valid URL.
This commit is contained in:
parent
5e88c36630
commit
3cfe215c01
1 changed files with 0 additions and 3 deletions
|
@ -27,9 +27,6 @@ struct ProxyData {
|
|||
|
||||
static ErrorOr<ProxyData> parse_url(URL::URL const& url)
|
||||
{
|
||||
if (!url.is_valid())
|
||||
return Error::from_string_literal("Invalid proxy URL");
|
||||
|
||||
ProxyData proxy_data;
|
||||
if (url.scheme() != "socks5")
|
||||
return Error::from_string_literal("Unsupported proxy type");
|
||||
|
|
Loading…
Add table
Reference in a new issue