commit cd9afd9b09881c116c7b932c2bd4643c96d0729f
parent 65794cd5cf90eb271d3c2db9838bd7833bb567e7
Author: wwp <subscript@free.fr>
Date: Mon, 11 Mar 2019 11:33:10 +0100
Make Fancy plugin's download-link feature following redirections.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
@@ -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);