From cd9afd9b09881c116c7b932c2bd4643c96d0729f Mon Sep 17 00:00:00 2001 From: wwp Date: Mon, 11 Mar 2019 11:33:10 +0100 Subject: [PATCH] Make Fancy plugin's download-link feature following redirections. --- src/plugins/fancy/fancy_viewer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c index c2b50c1f2..c84eeaeb4 100644 --- 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); -- 2.25.1