[svn] Propagate referrer information from retrieve_tree to retrieve_url.

Submitted by Ian Abbott in <3C1F4BFE.17436.D2D7B2@localhost>.
This commit is contained in:
hniksic 2001-12-18 07:22:03 -08:00
parent daa2fd1afd
commit 416671063a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-12-18 Ian Abbott <abbotti@mev.co.uk>
* recur.c (retrieve_tree): Pass on referring URL when retrieving
recursed URL.
2001-12-17 Hrvoje Niksic <hniksic@arsdigita.com>
* version.c: Wget 1.8.1-pre2 is released.

View File

@ -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