diff options
author | dec05eba <dec05eba@protonmail.com> | 2017-12-30 05:41:59 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2017-12-30 05:48:20 +0100 |
commit | 0f6562ef51df7a9370bb966448263cc21bead7a9 (patch) | |
tree | 88f41214739573e593c4b003026c72618fa8c1cd /src | |
parent | 7c215c39d530f01235043a131d64d4c7f766e9ab (diff) |
Fix compile error for non windows build
Diffstat (limited to 'src')
-rw-r--r-- | src/curl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/curl.cpp b/src/curl.cpp index a3c5e28..d14a036 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -66,7 +66,7 @@ namespace sibs curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, writeToFile); curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, true); curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "SIBS"); - curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, FALSE); + curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, false); #if OS_FAMILY == OS_FAMILY_POSIX FILE *file = fopen(filepath, "wb"); #else @@ -142,7 +142,7 @@ namespace sibs curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, writeToString); curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, true); curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "SIBS"); - curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, FALSE); + curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, false); curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, &result.str); printf("Downloading from url: %s\n", url); |