mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
pictureviewer.cpp: CPictureViewer::DownloadImage remove double add CURLOPT_NOSIGNA
Origin commit data
------------------
Commit: d58f621769
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-02-04 (Wed, 04 Feb 2015)
This commit is contained in:
@@ -120,7 +120,6 @@ std::string CPictureViewer::DownloadImage(std::string url)
|
|||||||
curl_easy_setopt(ch, CURLOPT_WRITEDATA, tmpFile);
|
curl_easy_setopt(ch, CURLOPT_WRITEDATA, tmpFile);
|
||||||
curl_easy_setopt(ch, CURLOPT_FAILONERROR, 1L);
|
curl_easy_setopt(ch, CURLOPT_FAILONERROR, 1L);
|
||||||
curl_easy_setopt(ch, CURLOPT_URL, url.c_str());
|
curl_easy_setopt(ch, CURLOPT_URL, url.c_str());
|
||||||
curl_easy_setopt(ch, CURLOPT_NOSIGNAL,1);
|
|
||||||
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);
|
||||||
CURLcode res = curl_easy_perform(ch);
|
CURLcode res = curl_easy_perform(ch);
|
||||||
|
Reference in New Issue
Block a user