mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Committed Jan Prikryl's patch from
<20000709171425.A16267@launzatte.cg.tuwien.ac.at>.
This commit is contained in:
parent
ae77e4f08e
commit
7794db052c
@ -1,3 +1,8 @@
|
||||
2000-07-14 Jan Prikryl <prikryl@cg.tuwien.ac.at>
|
||||
|
||||
* retr.c (retrieve_url): Consistently strdup opt.referer when
|
||||
setting u->referer.
|
||||
|
||||
2000-06-09 Dan Harkless <dan-wget@dilvish.speed.net>
|
||||
|
||||
* main.c (print_help): --help output for --waitretry was over 80 cols.
|
||||
|
10
src/retr.c
10
src/retr.c
@ -322,9 +322,13 @@ retrieve_url (const char *origurl, char **file, char **newloc,
|
||||
/* Set the referer. */
|
||||
if (refurl)
|
||||
u->referer = xstrdup (refurl);
|
||||
else {
|
||||
u->referer = opt.referer;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (opt.referer)
|
||||
u->referer = xstrdup (opt.referer);
|
||||
else
|
||||
u->referer = NULL;
|
||||
}
|
||||
|
||||
local_use_proxy = USE_PROXY_P (u);
|
||||
if (local_use_proxy)
|
||||
|
Loading…
Reference in New Issue
Block a user