mirror of
https://codeberg.org/spire/mapdownloader.git
synced 2026-06-03 18:24:11 +02:00
follow redirects
This commit is contained in:
parent
df19787ac6
commit
0c1dcb418f
1 changed files with 1 additions and 0 deletions
|
|
@ -120,6 +120,7 @@ public DownloadMapUrl(String:map[128], String:fullUrl[512], String:targetPath[12
|
||||||
|
|
||||||
curl_easy_setopt_handle(curl, CURLOPT_WRITEDATA, output_file);
|
curl_easy_setopt_handle(curl, CURLOPT_WRITEDATA, output_file);
|
||||||
curl_easy_setopt_string(curl, CURLOPT_URL, fullUrl);
|
curl_easy_setopt_string(curl, CURLOPT_URL, fullUrl);
|
||||||
|
curl_easy_setopt_int(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||||
curl_easy_perform_thread(curl, onComplete, hDLPack);
|
curl_easy_perform_thread(curl, onComplete, hDLPack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue