summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfadhil riyanto <me@fadev.org>2024-08-12 08:57:04 +0700
committerfadhil riyanto <me@fadev.org>2024-08-12 08:57:04 +0700
commit1caf922e2466de8ee23aa4a9f5cb798ab06327cc (patch)
treeadd3532eaaac2c0450aada5a20614a55ae7d9ddc
parent580d02327a8b4b8a0648e920da53a5b406c8a6a6 (diff)
set cURL as default http client
Signed-off-by: fadhil riyanto <me@fadev.org>
-rw-r--r--src/Bot.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}