LibRequests: Port to Windows

This commit is contained in:
stasoid 2024-12-15 05:40:31 +05:00 committed by Jelle Raaijmakers
parent 212cea4535
commit 969fb1a3a8
Notes: github-actions[bot] 2024-12-17 10:08:45 +00:00
2 changed files with 7 additions and 1 deletions

View file

@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCore/System.h>
#include <LibRequests/Request.h>
#include <LibRequests/RequestClient.h>
@ -19,7 +20,7 @@ RequestClient::~RequestClient() = default;
void RequestClient::die()
{
// FIXME: Gracefully handle this, or relaunch and reconnect to RequestServer.
warnln("\033[31;1m {} Lost connection to RequestServer\033[0m", getpid());
warnln("\033[31;1m {} Lost connection to RequestServer\033[0m", Core::System::getpid());
}
void RequestClient::ensure_connection(URL::URL const& url, ::RequestServer::CacheLevel cache_level)