mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibHTTP+ProtocolServer+LibGemini: Remove Request::schedule()
This API is only used for HttpRequest, but replicated in GeminiRequest without an actual user, so remove it and construct the job like the rest of the protocols.
This commit is contained in:
committed by
Andreas Kling
parent
b11b4b29e9
commit
a461526b07
@@ -50,10 +50,10 @@ OwnPtr<Download> HttpProtocol::start_download(ClientConnection& client, const St
|
||||
request.set_url(url);
|
||||
request.set_headers(headers);
|
||||
request.set_body(request_body);
|
||||
auto job = request.schedule();
|
||||
if (!job)
|
||||
return nullptr;
|
||||
return HttpDownload::create_with_job({}, client, (HTTP::HttpJob&)*job);
|
||||
auto job = HTTP::HttpJob::construct(request);
|
||||
auto download = HttpDownload::create_with_job({}, client, (HTTP::HttpJob&)*job);
|
||||
job->start();
|
||||
return download;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user