Make Fancy plugin's download-link feature following redirections.
[claws.git] / src / plugins / fancy / fancy_viewer.c
index c2b50c1f21e77d06c6ec05dee20af12d96171b8d..c84eeaeb41c4322e912283dee4b8b51ccef19b59 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);