mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +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
00bbb2105b
commit
8ab541b3f6
Notes:
github-actions[bot]
2025-04-19 11:20:08 +00:00
Author: https://github.com/shannonbooth
Commit: 8ab541b3f6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4401
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 0 additions and 3 deletions
|
@ -27,9 +27,6 @@ struct ProxyData {
|
||||||
|
|
||||||
static ErrorOr<ProxyData> parse_url(URL::URL const& url)
|
static ErrorOr<ProxyData> parse_url(URL::URL const& url)
|
||||||
{
|
{
|
||||||
if (!url.is_valid())
|
|
||||||
return Error::from_string_literal("Invalid proxy URL");
|
|
||||||
|
|
||||||
ProxyData proxy_data;
|
ProxyData proxy_data;
|
||||||
if (url.scheme() != "socks5")
|
if (url.scheme() != "socks5")
|
||||||
return Error::from_string_literal("Unsupported proxy type");
|
return Error::from_string_literal("Unsupported proxy type");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue