Skip to content

Commit

Permalink
Fix deprecated CURL API usage. (#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
utoni authored Feb 2, 2024
1 parent bad56a0 commit e8dd205
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/http/HttpClient_Curl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,13 @@ class CurlHttpOperation {
* Note that this API takes a pointer to a 'long' while we use
* curl_socket_t for sockets otherwise.
*/

#if LIBCURL_VERSION_NUM >= 0x072D00 // Version 7.45.00
res = curl_easy_getinfo(curl, CURLINFO_ACTIVESOCKET, &sockextr);
#else
res = curl_easy_getinfo(curl, CURLINFO_LASTSOCKET, &sockextr);
#endif

if(CURLE_OK != res)
{
DispatchEvent(OnConnectFailed); // couldn't connect - stage 2
Expand Down

0 comments on commit e8dd205

Please sign in to comment.