1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

Ladybird: Default to HTTPS instead of HTTP if no protocol is specified

This commit is contained in:
Andreas Kling 2023-05-23 10:19:27 +02:00 committed by Jelle Raaijmakers
parent e2c72922f6
commit 1a1ff8eb5e
2 changed files with 2 additions and 2 deletions

View file

@ -84,7 +84,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
if (FileSystem::exists(raw_url))
url = URL::create_with_file_scheme(TRY(FileSystem::real_path(raw_url)).to_deprecated_string());
else if (!url.is_valid())
url = DeprecatedString::formatted("http://{}", raw_url);
url = DeprecatedString::formatted("https://{}", raw_url);
return url;
};