diff --git a/Ladybird/CookieJar.cpp b/Ladybird/CookieJar.cpp index fb97ad2e81..2c3b27d805 100644 --- a/Ladybird/CookieJar.cpp +++ b/Ladybird/CookieJar.cpp @@ -273,7 +273,7 @@ Vector CookieJar::get_matching_cookies(const URL& url, Str continue; // If the cookie's secure-only-flag is true, then the request-uri's scheme must denote a "secure" protocol. - if (cookie.value.secure && (url.protocol() != "https")) + if (cookie.value.secure && (url.scheme() != "https")) continue; // If the cookie's http-only-flag is true, then exclude the cookie if the cookie-string is being generated for a "non-HTTP" API. diff --git a/Ladybird/RequestManagerQt.cpp b/Ladybird/RequestManagerQt.cpp index 25af361ee6..8529f4bb81 100644 --- a/Ladybird/RequestManagerQt.cpp +++ b/Ladybird/RequestManagerQt.cpp @@ -23,7 +23,7 @@ void RequestManagerQt::reply_finished(QNetworkReply* reply) RefPtr RequestManagerQt::start_request(String const& method, AK::URL const& url, HashMap const& request_headers, ReadonlyBytes request_body, Core::ProxyData const& proxy) { - if (!url.protocol().is_one_of_ignoring_case("http"sv, "https"sv)) { + if (!url.scheme().is_one_of_ignoring_case("http"sv, "https"sv)) { return nullptr; } auto request_or_error = Request::create(*m_qnam, method, url, request_headers, request_body, proxy);