summaryrefslogtreecommitdiff
path: root/content/fetchcache.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2003-10-25 19:20:13 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2003-10-25 19:20:13 +0000
commitc9e188a4d1634d9c7d2292a8d04e02f313f37f3b (patch)
treea58742b163820d4ee839f4a035603afa50243e63 /content/fetchcache.c
parented449261f62cb56a9d6eb7d16f7d54d79bbea1f4 (diff)
downloadnetsurf-c9e188a4d1634d9c7d2292a8d04e02f313f37f3b.tar.gz
netsurf-c9e188a4d1634d9c7d2292a8d04e02f313f37f3b.tar.bz2
[project @ 2003-10-25 19:20:13 by jmb]
HTTP Auth login improved (greatly). Addresses all three issues in the previous version. svn path=/import/netsurf/; revision=382
Diffstat (limited to 'content/fetchcache.c')
-rw-r--r--content/fetchcache.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/content/fetchcache.c b/content/fetchcache.c
index 13ddbc9c5..28c098034 100644
--- a/content/fetchcache.c
+++ b/content/fetchcache.c
@@ -154,6 +154,14 @@ void fetchcache_callback(fetch_msg msg, void *p, char *data, unsigned long size)
content_destroy(c);
break;
+ case FETCH_AUTH:
+ /* data -> string containing the Realm */
+ LOG(("FETCH_AUTH, '%s'", data));
+ c->fetch = 0;
+ content_broadcast(c, CONTENT_MSG_AUTH, data);
+ cache_destroy(c);
+ break;
+
default:
assert(0);
}