summaryrefslogtreecommitdiff
path: root/content/fetchcache.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-06-26 11:41:26 +0000
committerJames Bursa <james@netsurf-browser.org>2003-06-26 11:41:26 +0000
commit1145b231d4b682478bdf052efbade9dbd2df11e8 (patch)
tree98d3e275e25e89358c158a0fba87b78d8644f510 /content/fetchcache.c
parent1246f7b9703e3085cece064699909f240e00effc (diff)
downloadnetsurf-1145b231d4b682478bdf052efbade9dbd2df11e8.tar.gz
netsurf-1145b231d4b682478bdf052efbade9dbd2df11e8.tar.bz2
[project @ 2003-06-26 11:41:26 by bursa]
Implement HTTP redirects. svn path=/import/netsurf/; revision=187
Diffstat (limited to 'content/fetchcache.c')
-rw-r--r--content/fetchcache.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/content/fetchcache.c b/content/fetchcache.c
index 0755b37c5..da5d65e13 100644
--- a/content/fetchcache.c
+++ b/content/fetchcache.c
@@ -1,5 +1,5 @@
/**
- * $Id: fetchcache.c,v 1.10 2003/06/17 19:24:20 bursa Exp $
+ * $Id: fetchcache.c,v 1.11 2003/06/26 11:41:26 bursa Exp $
*/
#include <assert.h>
@@ -83,6 +83,14 @@ void fetchcache_callback(fetch_msg msg, void *p, char *data, unsigned long size)
content_destroy(c);
break;
+ case FETCH_REDIRECT:
+ LOG(("FETCH_REDIRECT, '%s'", data));
+ c->fetch = 0;
+ content_broadcast(c, CONTENT_MSG_REDIRECT, data);
+ cache_destroy(c);
+ content_destroy(c);
+ break;
+
default:
assert(0);
}