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:
parent
e2c72922f6
commit
1a1ff8eb5e
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue