diff options
author | James Bursa <james@netsurf-browser.org> | 2003-08-29 12:57:14 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-08-29 12:57:14 +0000 |
commit | 5c310d84dc6153b62e33d5aa28a1f75e2e776ea6 (patch) | |
tree | a7efa6f8fb1a1b27bb1939bd569b7b3a7115e4d7 /content/fetchcache.c | |
parent | be34d32e4677f4d2c527d157cf0016ac8d8ad798 (diff) | |
download | netsurf-5c310d84dc6153b62e33d5aa28a1f75e2e776ea6.tar.gz netsurf-5c310d84dc6153b62e33d5aa28a1f75e2e776ea6.tar.bz2 |
[project @ 2003-08-29 12:57:14 by bursa]
Better handling of server HTTP errors.
svn path=/import/netsurf/; revision=259
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); |