diff options
Diffstat (limited to 'Userland/Services/RequestServer/GeminiProtocol.cpp')
-rw-r--r-- | Userland/Services/RequestServer/GeminiProtocol.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Services/RequestServer/GeminiProtocol.cpp b/Userland/Services/RequestServer/GeminiProtocol.cpp index e02ed8413f..45686caa75 100644 --- a/Userland/Services/RequestServer/GeminiProtocol.cpp +++ b/Userland/Services/RequestServer/GeminiProtocol.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include "ConnectionCache.h" #include <LibGemini/GeminiJob.h> #include <LibGemini/GeminiRequest.h> #include <RequestServer/GeminiProtocol.h> @@ -34,7 +35,9 @@ OwnPtr<Request> GeminiProtocol::start_request(ClientConnection& client, const St auto job = Gemini::GeminiJob::construct(request, *output_stream); auto protocol_request = GeminiRequest::create_with_job({}, client, (Gemini::GeminiJob&)*job, move(output_stream)); protocol_request->set_request_fd(pipe_result.value().read_fd); - job->start(); + + ConnectionCache::get_or_create_connection(ConnectionCache::g_tls_connection_cache, url, *job); + return protocol_request; } |