mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
fix download pic from ssl url
Origin commit data
------------------
Commit: f6482eb042
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-04-18 (Tue, 18 Apr 2017)
This commit is contained in:
@@ -123,6 +123,7 @@ std::string CPictureViewer::DownloadImage(std::string url)
|
|||||||
curl_easy_setopt(ch, CURLOPT_URL, url.c_str());
|
curl_easy_setopt(ch, CURLOPT_URL, url.c_str());
|
||||||
curl_easy_setopt(ch, CURLOPT_CONNECTTIMEOUT, 3);
|
curl_easy_setopt(ch, CURLOPT_CONNECTTIMEOUT, 3);
|
||||||
curl_easy_setopt(ch, CURLOPT_TIMEOUT, 4);
|
curl_easy_setopt(ch, CURLOPT_TIMEOUT, 4);
|
||||||
|
curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||||
CURLcode res = curl_easy_perform(ch);
|
CURLcode res = curl_easy_perform(ch);
|
||||||
if (res != CURLE_OK){
|
if (res != CURLE_OK){
|
||||||
printf("[%s] curl_easy_perform() failed:%s\n",__func__, curl_easy_strerror(res));
|
printf("[%s] curl_easy_perform() failed:%s\n",__func__, curl_easy_strerror(res));
|
||||||
|
Reference in New Issue
Block a user