mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Before concluding that the file is already fully retrieved, make sure
that the file existed and `Range' was actually requested. Published in <sxseltwf4ks.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
43ef870bd3
commit
9588e1af80
@ -1,3 +1,9 @@
|
||||
2001-05-09 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* http.c (gethttp): Before concluding that the file is already
|
||||
fully retrieved, make sure that the file existed and `Range' was
|
||||
actually requested.
|
||||
|
||||
2001-05-09 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* cookies.c (eliminate_dups): New function.
|
||||
|
@ -1190,7 +1190,11 @@ Accept: %s\r\n\
|
||||
if (opt.always_rest)
|
||||
{
|
||||
/* Check for condition #2. */
|
||||
if (hs->restval >= contlen)
|
||||
if (hs->restval > 0 /* restart was requested. */
|
||||
&& contlen != -1 /* we got content-length. */
|
||||
&& hs->restval >= contlen /* file fully downloaded
|
||||
or has shrunk. */
|
||||
)
|
||||
{
|
||||
logputs (LOG_VERBOSE, _("\
|
||||
\n The file is already fully retrieved; nothing to do.\n\n"));
|
||||
|
Loading…
Reference in New Issue
Block a user