Compatibility with older libcurl versions
This commit is contained in:
parent
6360d452fe
commit
0cbb13ffbe
@ -30,7 +30,7 @@ namespace cpputils {
|
|||||||
// example.com is redirected, so we tell libcurl to follow redirection
|
// example.com is redirected, so we tell libcurl to follow redirection
|
||||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||||
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); //Prevent "longjmp causes uninitialized stack frame" bug
|
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); //Prevent "longjmp causes uninitialized stack frame" bug
|
||||||
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "deflate");
|
curl_easy_setopt(curl, CURLOPT_ENCODING, "deflate");
|
||||||
ostringstream out;
|
ostringstream out;
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &CurlHttpClient::write_data);
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &CurlHttpClient::write_data);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &out);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &out);
|
||||||
|
Loading…
Reference in New Issue
Block a user