projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6469d53
)
Fix default custom URL: needs 3 redirects
author
Ricardo Mones
<ricardo@mones.org>
Fri, 21 Mar 2014 00:36:06 +0000
(
01:36
+0100)
committer
Ricardo Mones
<ricardo@mones.org>
Fri, 21 Mar 2014 00:36:06 +0000
(
01:36
+0100)
src/plugins/libravatar/libravatar.c
patch
|
blob
|
history
diff --git
a/src/plugins/libravatar/libravatar.c
b/src/plugins/libravatar/libravatar.c
index 293b236b26189a860be372c5614050e72c970560..62d7dc3a5eab8d93e39793391c77b69cd1f546a7 100644
(file)
--- a/
src/plugins/libravatar/libravatar.c
+++ b/
src/plugins/libravatar/libravatar.c
@@
-154,7
+154,8
@@
static GtkWidget *image_widget_from_url(const gchar *url, const gchar *md5)
long filesize;
if (libravatarprefs.allow_redirects) {
- long maxredirs = (libravatarprefs.default_mode == DEF_MODE_MM)? 2L: 1L;
+ long maxredirs = (libravatarprefs.default_mode == DEF_MODE_URL)? 3L
+ : ((libravatarprefs.default_mode == DEF_MODE_MM)? 2L: 1L);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_MAXREDIRS, maxredirs);