Do not force the download port to be 80.

We may want to use url with port != 80.
This commit is contained in:
Matthieu Gautier
2018-10-24 11:56:38 +02:00
parent c6206edfb4
commit ad654ead08

View File

@ -191,7 +191,6 @@ std::string kiwix::download(const std::string& url) {
auto curl = curl_easy_init();
std::stringstream ss;
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_PORT, 80);
curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &write_callback_to_iss);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ss);