Curl: re-enable verification of the SSL certificate against host

This commit is contained in:
Andrzej Rybczak
2017-10-12 13:29:51 +02:00
parent 58bb6b5a43
commit b7da5d1b9a

View File

@@ -41,8 +41,6 @@ CURLcode Curl::perform(std::string &data, const std::string &URL, const std::str
curl_easy_setopt(c, CURLOPT_WRITEDATA, &data);
curl_easy_setopt(c, CURLOPT_CONNECTTIMEOUT, timeout);
curl_easy_setopt(c, CURLOPT_NOSIGNAL, 1);
// Workaround last.fm SSL certificate problems.
curl_easy_setopt(c, CURLOPT_SSL_VERIFYHOST, 0);
curl_easy_setopt(c, CURLOPT_USERAGENT, "ncmpcpp " VERSION);
if (follow_redirect)
curl_easy_setopt(c, CURLOPT_FOLLOWLOCATION, 1L);