diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-05-22 06:27:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-05-22 06:27:59 +0300 |
commit | 7264fa5f1d9e6ab3cb973c7c80ef224a3f4d2e6b (patch) | |
tree | 0c896c6dddacb6e587650d5f9a4d02d51ae9e4a8 /src/net/download.cpp | |
parent | f471f7b1afe1343b601a3476cd6b7dac577eca63 (diff) | |
download | manaverse-7264fa5f1d9e6ab3cb973c7c80ef224a3f4d2e6b.tar.gz manaverse-7264fa5f1d9e6ab3cb973c7c80ef224a3f4d2e6b.tar.bz2 manaverse-7264fa5f1d9e6ab3cb973c7c80ef224a3f4d2e6b.tar.xz manaverse-7264fa5f1d9e6ab3cb973c7c80ef224a3f4d2e6b.zip |
Set default protocol in curl.
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r-- | src/net/download.cpp | 3 |
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) |