From fa3b5090e94ee1386ca6ed6c4ddf886fa46dca54 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Fri, 27 Mar 2026 12:03:02 +0100 Subject: remove CPR HTTP client backend (#894) CPR is no longer needed now that HttpClient has fully transitioned to raw libcurl. This removes the CPR library, its build integration, implementation files, and all conditional compilation guards, leaving curl as the sole HTTP client backend. --- src/zenserver/config/config.cpp | 2 +- src/zenserver/config/config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/zenserver') diff --git a/src/zenserver/config/config.cpp b/src/zenserver/config/config.cpp index 15f6f79f3..daad154bc 100644 --- a/src/zenserver/config/config.cpp +++ b/src/zenserver/config/config.cpp @@ -417,7 +417,7 @@ ZenServerCmdLineOptions::AddCliOptions(cxxopts::Options& options, ZenServerConfi options.add_option("network", "", "httpclient", - "Select HTTP client implementation (e.g. 'curl', 'cpr')", + "Select HTTP client implementation", cxxopts::value(ServerOptions.HttpClient.Backend)->default_value("curl"), ""); diff --git a/src/zenserver/config/config.h b/src/zenserver/config/config.h index 5078fe71a..d35a1a8c7 100644 --- a/src/zenserver/config/config.h +++ b/src/zenserver/config/config.h @@ -40,7 +40,7 @@ struct ZenSentryConfig struct HttpClientConfig { - std::string Backend = "cpr"; // Choice of HTTP client implementation (e.g. "curl", "cpr") + std::string Backend = "curl"; // Choice of HTTP client implementation }; struct ZenServerConfig -- cgit v1.2.3