summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-05-23 10:19:59 +0200
committerJelle Raaijmakers <jelle@gmta.nl>2023-05-23 11:16:36 +0200
commit8ce1b7ab7e7e0b86653175b594c02b095c8668cf (patch)
tree833618e39c52fad544088ab17a00877b2e02a759 /Userland/Applications
parent1a1ff8eb5ee6a53a4963628c5e65f10ec3421114 (diff)
downloadserenity-8ce1b7ab7e7e0b86653175b594c02b095c8668cf.zip
Browser: Default to HTTPS instead of HTTP if no protocol is specified
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/Browser/Tab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Browser/Tab.cpp b/Userland/Applications/Browser/Tab.cpp
index 3c97b7f6d1..7fced2352b 100644
--- a/Userland/Applications/Browser/Tab.cpp
+++ b/Userland/Applications/Browser/Tab.cpp
@@ -54,7 +54,7 @@ URL url_from_user_input(DeprecatedString const& input)
if (input.starts_with('?') && !g_search_engine.is_empty())
return URL(g_search_engine.replace("{}"sv, URL::percent_encode(input.substring_view(1)), ReplaceMode::FirstOnly));
- URL url_with_http_schema = URL(DeprecatedString::formatted("http://{}", input));
+ URL url_with_http_schema = URL(DeprecatedString::formatted("https://{}", input));
if (url_with_http_schema.is_valid() && url_with_http_schema.port().has_value())
return url_with_http_schema;