diff options
Diffstat (limited to 'content/fetchcache.c')
-rw-r--r-- | content/fetchcache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content/fetchcache.c b/content/fetchcache.c index 1c950ba4b..4996edd81 100644 --- a/content/fetchcache.c +++ b/content/fetchcache.c @@ -21,7 +21,8 @@ static void fetchcache_callback(fetch_msg msg, void *p, char *data, unsigned lon struct content * fetchcache(const char *url0, char *referer, void (*callback)(content_msg msg, struct content *c, void *p1, void *p2, const char *error), - void *p1, void *p2, unsigned long width, unsigned long height) + void *p1, void *p2, unsigned long width, unsigned long height, + bool only_2xx) { struct content *c; char *url = xstrdup(url0); @@ -45,7 +46,7 @@ struct content * fetchcache(const char *url0, char *referer, c->fetch_size = 0; c->width = width; c->height = height; - c->fetch = fetch_start(url, referer, fetchcache_callback, c); + c->fetch = fetch_start(url, referer, fetchcache_callback, c, only_2xx); if (c->fetch == 0) { LOG(("warning: fetch_start failed")); cache_destroy(c); |