From f415b09c7b1f554557536d4e86bd900c7cc300e7 Mon Sep 17 00:00:00 2001 From: hogliux Date: Fri, 28 Oct 2016 09:08:57 +0100 Subject: [PATCH] Enabled cookies in the juce curl backend to align the behaviour with other platforms --- modules/juce_core/native/juce_curl_Network.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_core/native/juce_curl_Network.cpp b/modules/juce_core/native/juce_curl_Network.cpp index 8051ed4a0b..b32b4d1d0a 100644 --- a/modules/juce_core/native/juce_curl_Network.cpp +++ b/modules/juce_core/native/juce_curl_Network.cpp @@ -143,7 +143,8 @@ private: && curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, StaticCurlWrite) == CURLE_OK && curl_easy_setopt (curl, CURLOPT_MAXREDIRS, static_cast (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) + && curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, (maxRedirects > 0 ? 1 : 0)) == CURLE_OK + && curl_easy_setopt (curl, CURLOPT_COOKIEFILE, "") == CURLE_OK) { if (isPost) {