mirror of
https://github.com/mirror/wget.git
synced 2025-01-19 16:50:08 +08:00
[svn] Fix #20747: Wget was returning error for non-recursive --spider when file exists.
This commit is contained in:
parent
36f52a8be0
commit
adc0632654
@ -32,7 +32,12 @@
|
|||||||
2007-08-24 Micah Cowan <micah@cowan.name>
|
2007-08-24 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
* http.c (http_loop): Introduced time_came_from_head boolean
|
* http.c (http_loop): Introduced time_came_from_head boolean
|
||||||
flag, to help avoid parsing the same Last-Modified header twice,
|
flag, to help avoid parsing the same Last-Modified header twice.
|
||||||
|
Replaced spidering returns of RETRUNNEEDED for some situations,
|
||||||
|
to RETROK, as otherwise it will be interpreted as an error.
|
||||||
|
RETRUNNEEDED appears never to be referenced outside of
|
||||||
|
http.c (and wget.h), and, when returned by gethttp, is
|
||||||
|
translated by http_loop to RETROK.
|
||||||
|
|
||||||
2007-08-23 Joshua David Williams <yurimxpxman@gmail.com>
|
2007-08-23 Joshua David Williams <yurimxpxman@gmail.com>
|
||||||
|
|
||||||
|
@ -2619,7 +2619,7 @@ Remote file exists and could contain links to other resources -- retrieving.\n\n
|
|||||||
{
|
{
|
||||||
logprintf (LOG_VERBOSE, _("\
|
logprintf (LOG_VERBOSE, _("\
|
||||||
Remote file exists but does not contain any link -- not retrieving.\n\n"));
|
Remote file exists but does not contain any link -- not retrieving.\n\n"));
|
||||||
ret = RETRUNNEEDED;
|
ret = RETROK; /* RETRUNNEEDED is not for caller. */
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2627,7 +2627,7 @@ Remote file exists but does not contain any link -- not retrieving.\n\n"));
|
|||||||
{
|
{
|
||||||
logprintf (LOG_VERBOSE, _("\
|
logprintf (LOG_VERBOSE, _("\
|
||||||
Remote file exists but recursion is disabled -- not retrieving.\n\n"));
|
Remote file exists but recursion is disabled -- not retrieving.\n\n"));
|
||||||
ret = RETRUNNEEDED;
|
ret = RETROK; /* RETRUNNEEDED is not for caller. */
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user