summaryrefslogtreecommitdiff
path: root/debug
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 /debug
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 'debug')
-rw-r--r--debug/netsurfd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/debug/netsurfd.c b/debug/netsurfd.c
index 81a494ff0..dcb2150ab 100644
--- a/debug/netsurfd.c
+++ b/debug/netsurfd.c
@@ -14,7 +14,11 @@ void callback(content_msg msg, struct content *c, void *p1,
if (msg == CONTENT_MSG_DONE || msg == CONTENT_MSG_ERROR)
done = 1;
else if (msg == CONTENT_MSG_STATUS)
- printf("=== STATUS: %s", c->status_message);
+ printf("=== STATUS: %s\n", c->status_message);
+ else if (msg == CONTENT_MSG_REDIRECT) {
+ printf("=== REDIRECT to '%s'\n", error);
+ done = 1;
+ }
}
int main(int argc, char *argv[])