13
0

fix cURL/SSL

pingback comes first. We need defaults (with SSL). Later explicit
(Freesound Moocher) and implicit (curl_easy_init) calls to curl_global_init
are idempotent and won't get the flags back.
This commit is contained in:
Robin Gareus 2016-07-17 19:16:22 +02:00
parent 5f2ee3328f
commit 6424a0eab9

View File

@ -109,7 +109,7 @@ _pingback (void *arg)
string return_str; string return_str;
//initialize curl //initialize curl
curl_global_init (CURL_GLOBAL_NOTHING); curl_global_init (CURL_GLOBAL_DEFAULT);
c = curl_easy_init (); c = curl_easy_init ();
curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, curl_write_data); curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, curl_write_data);