mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
(macOS) Fixed a curl compatibility issue on older OS releases.
This commit is contained in:
parent
e9b1718fca
commit
d8dc08e4f6
|
@ -137,7 +137,8 @@ HttpReq::HttpReq(const std::string& url)
|
|||
|
||||
// Set curl restrict redirect protocols.
|
||||
|
||||
#if LIBCURL_VERSION_MAJOR < 7 || (LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR < 85)
|
||||
#if defined(__APPLE__) || LIBCURL_VERSION_MAJOR < 7 || \
|
||||
(LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR < 85)
|
||||
err = curl_easy_setopt(mHandle, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
|
||||
#else
|
||||
err = curl_easy_setopt(mHandle, CURLOPT_REDIR_PROTOCOLS_STR, "http,https");
|
||||
|
|
Loading…
Reference in a new issue