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>
|
2000-06-09 Dan Harkless <dan-wget@dilvish.speed.net>
|
||||||
|
|
||||||
* main.c (print_help): --help output for --waitretry was over 80 cols.
|
* main.c (print_help): --help output for --waitretry was over 80 cols.
|
||||||
|
12
src/retr.c
12
src/retr.c
@ -322,10 +322,14 @@ retrieve_url (const char *origurl, char **file, char **newloc,
|
|||||||
/* Set the referer. */
|
/* Set the referer. */
|
||||||
if (refurl)
|
if (refurl)
|
||||||
u->referer = xstrdup (refurl);
|
u->referer = xstrdup (refurl);
|
||||||
else {
|
else
|
||||||
u->referer = opt.referer;
|
{
|
||||||
}
|
if (opt.referer)
|
||||||
|
u->referer = xstrdup (opt.referer);
|
||||||
|
else
|
||||||
|
u->referer = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
local_use_proxy = USE_PROXY_P (u);
|
local_use_proxy = USE_PROXY_P (u);
|
||||||
if (local_use_proxy)
|
if (local_use_proxy)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user