Fix error if files are downloaded using https (as happened because of
a server misconfiguration). Add details about the certificate if the URL contains https (and not only if it's not a downloaded file, i.e. it is a request with an xml answers that is read from memory).
This commit is contained in:
parent
22d8482400
commit
08b1fc01f0
@ -171,7 +171,7 @@ namespace Online
|
||||
curl_easy_setopt(m_curl_session, CURLOPT_LOW_SPEED_LIMIT, 10);
|
||||
curl_easy_setopt(m_curl_session, CURLOPT_LOW_SPEED_TIME, 20);
|
||||
//curl_easy_setopt(m_curl_session, CURLOPT_VERBOSE, 1L);
|
||||
if (m_filename.size() == 0)
|
||||
if (m_url.substr(0, 8) == "https://")
|
||||
{
|
||||
// https, load certificate info
|
||||
struct curl_slist *chunk = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user