Make Fancy plugin's download-link feature following redirections.
authorwwp <subscript@free.fr>
Mon, 11 Mar 2019 10:33:10 +0000 (11:33 +0100)
committerwwp <subscript@free.fr>
Mon, 11 Mar 2019 10:33:10 +0000 (11:33 +0100)
src/plugins/fancy/fancy_viewer.c

index c2b50c1..c84eeae 100644 (file)
@@ -665,6 +665,7 @@ static void *download_file_curl (void *data)
                curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, download_file_curl_write_cb);
                curl_easy_setopt(curl, CURLOPT_WRITEDATA, viewer);
                curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
+               curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
                res = curl_easy_perform(curl);
                curl_easy_cleanup(curl);