From 1caf922e2466de8ee23aa4a9f5cb798ab06327cc Mon Sep 17 00:00:00 2001 From: fadhil riyanto Date: Mon, 12 Aug 2024 08:57:04 +0700 Subject: set cURL as default http client Signed-off-by: fadhil riyanto --- src/Bot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Bot.cpp b/src/Bot.cpp index 566f041..af36029 100644 --- a/src/Bot.cpp +++ b/src/Bot.cpp @@ -1,4 +1,5 @@ #include "tgbot/net/BoostHttpOnlySslClient.h" +#include "tgbot/net/CurlHttpClient.h" #include "tgbot/Bot.h" #include "tgbot/EventBroadcaster.h" @@ -16,7 +17,7 @@ Bot::Bot(std::string token, const std::string& url, const HttpClient& httpClient } HttpClient& Bot::_getDefaultHttpClient() { - static BoostHttpOnlySslClient instance; + static CurlHttpClient instance; return instance; } -- cgit v1.2.3