summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-01-02 11:30:32 +0100
committerDaniel Friesel <derf@finalrewind.org>2012-01-02 11:30:32 +0100
commit36b5a78c75ac66c40b4a5fe6f187bd50a5f3612c (patch)
tree8065fa88eee3954883a44ad229c08c61d05bf60f
parent412316900b62656d7e25ce07cb4a7af3f2bce26e (diff)
imlib.c: Follow HTTP redirects (Debian #653689)
-rw-r--r--src/imlib.c1
1 files changed, 1 insertions, 0 deletions
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);