mirror of https://github.com/kiwix/libkiwix.git
Do not force the download port to be 80.
We may want to use url with port != 80.
This commit is contained in:
parent
c6206edfb4
commit
ad654ead08
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue