talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 65af7e84abf09b87e60efb7714e1326b8bc01fe7
parent 2aa6fdce4045d93cce4082ece711c8cc047b8fde
Author: wwp <subscript@free.fr>
Date:   Mon, 11 Mar 2019 11:33:10 +0100

Make Fancy plugin's download-link feature following redirections.

Diffstat:
Msrc/plugins/fancy/fancy_viewer.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c @@ -696,6 +696,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);