summaryrefslogtreecommitdiff
path: root/content/fetchcache.c
diff options
context:
space:
mode:
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);
}