summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorDexesTTP <dexes.ttp@gmail.com>2022-07-18 18:39:09 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-19 08:02:52 +0100
commit9c431ede7a9a1d0934f869102e7bbc5cbb8bb6be (patch)
tree37bf193353dfdcce9f2cad76e65b518624a3a1f0 /Userland/Utilities
parentf33df0ee051c97832f474399bf80fa332cfe932d (diff)
downloadserenity-9c431ede7a9a1d0934f869102e7bbc5cbb8bb6be.zip
headless-browser: Use port 443 as default for HTTPS requests
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/headless-browser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/headless-browser.cpp b/Userland/Utilities/headless-browser.cpp
index 9485456c90..21f6e834a2 100644
--- a/Userland/Utilities/headless-browser.cpp
+++ b/Userland/Utilities/headless-browser.cpp
@@ -365,7 +365,7 @@ public:
static ErrorOr<NonnullRefPtr<HTTPSHeadlessRequest>> create(String const& method, AK::URL const& url, HashMap<String, String> const& request_headers, ReadonlyBytes request_body, Core::ProxyData const&)
{
auto stream_backing_buffer = TRY(ByteBuffer::create_uninitialized(1 * MiB));
- auto underlying_socket = TRY(TLS::TLSv12::connect(url.host(), url.port().value_or(80)));
+ auto underlying_socket = TRY(TLS::TLSv12::connect(url.host(), url.port().value_or(443)));
TRY(underlying_socket->set_blocking(false));
auto socket = TRY(Core::Stream::BufferedSocket<TLS::TLSv12>::create(move(underlying_socket)));