From 416671063aea987068b479a1f84a08ae24d757a1 Mon Sep 17 00:00:00 2001 From: hniksic Date: Tue, 18 Dec 2001 07:22:03 -0800 Subject: [PATCH] [svn] Propagate referrer information from retrieve_tree to retrieve_url. Submitted by Ian Abbott in <3C1F4BFE.17436.D2D7B2@localhost>. --- src/ChangeLog | 5 +++++ src/recur.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 24bdc832..bfdad7df 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-12-18 Ian Abbott + + * recur.c (retrieve_tree): Pass on referring URL when retrieving + recursed URL. + 2001-12-17 Hrvoje Niksic * version.c: Wget 1.8.1-pre2 is released. diff --git a/src/recur.c b/src/recur.c index a970c698..975e7a3c 100644 --- a/src/recur.c +++ b/src/recur.c @@ -237,7 +237,7 @@ retrieve_tree (const char *start_url) int oldrec = opt.recursive; opt.recursive = 0; - status = retrieve_url (url, &file, &redirected, NULL, &dt); + status = retrieve_url (url, &file, &redirected, referer, &dt); opt.recursive = oldrec; if (file && status == RETROK