Disable CURL Signals

pull/1/merge
Daniel Richman 2012-11-04 10:39:16 +00:00
rodzic ab15cf16f9
commit 8dacdc32cd
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -353,6 +353,7 @@ string cURL::perform(const string &url)
{
string response;
setopt(CURLOPT_NOSIGNAL, 1);
setopt(CURLOPT_URL, url.c_str());
setopt(CURLOPT_WRITEFUNCTION, write_func);
setopt(CURLOPT_WRITEDATA, &response);