mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
Ladybird/Everywhere: Replace "protocol" with "scheme" url helpers
See 4230dbbb21
This commit is contained in:
parent
bf26b52ac6
commit
f1c7ee2810
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ void RequestManagerQt::reply_finished(QNetworkReply* reply)
|
|||
|
||||
RefPtr<Web::ResourceLoaderConnectorRequest> RequestManagerQt::start_request(String const& method, AK::URL const& url, HashMap<String, String> 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue