From 36b5a78c75ac66c40b4a5fe6f187bd50a5f3612c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 2 Jan 2012 11:30:32 +0100 Subject: imlib.c: Follow HTTP redirects (Debian #653689) --- src/imlib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/imlib.c b/src/imlib.c index c44e644..4bbc196 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -270,6 +270,7 @@ char *feh_http_load_image(char *url) ebuff = emalloc(CURL_ERROR_SIZE); curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, ebuff); curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1L); + curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1); res = curl_easy_perform(curl); curl_easy_cleanup(curl); -- cgit v1.2.3