From 7264fa5f1d9e6ab3cb973c7c80ef224a3f4d2e6b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 22 May 2018 06:27:59 +0300 Subject: Set default protocol in curl. --- src/net/download.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/net/download.cpp b/src/net/download.cpp index 073990b07..05f10e027 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -612,6 +612,9 @@ void Download::addHeaders(CURL *const curl A_UNUSED) void Download::addCommonFlags(CURL *const curl) { curl_easy_setopt(curl, CURLOPT_STDERR, logger->getFile()); +#if LIBCURL_VERSION_NUM >= 0x072D00 + curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "http"); +#endif // LIBCURL_VERSION_NUM >= 0x072D00 } void Download::prepareForm(curl_httppost **form, const std::string &fileName) -- cgit v1.2.3-70-g09d2