Browse Source

Added CURLOPT_NOSIGNAL to the cURL configuration

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
809c8f56e2
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      modules/juce_core/native/juce_curl_Network.cpp

+ 1
- 0
modules/juce_core/native/juce_curl_Network.cpp View File

@@ -149,6 +149,7 @@ public:
if (curl_easy_setopt (curl, CURLOPT_URL, address.toRawUTF8()) == CURLE_OK
&& curl_easy_setopt (curl, CURLOPT_WRITEDATA, this) == CURLE_OK
&& curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, StaticCurlWrite) == CURLE_OK
&& curl_easy_setopt (curl, CURLOPT_NOSIGNAL, 1) == CURLE_OK
&& curl_easy_setopt (curl, CURLOPT_MAXREDIRS, static_cast<long> (maxRedirects)) == CURLE_OK
&& curl_easy_setopt (curl, CURLOPT_USERAGENT, userAgent.toRawUTF8()) == CURLE_OK
&& curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, (maxRedirects > 0 ? 1 : 0)) == CURLE_OK)


Loading…
Cancel
Save