summaryrefslogtreecommitdiff
path: root/src/net/download.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r--src/net/download.cpp3
1 files changed, 3 insertions, 0 deletions
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)