[EMAIL PROTECTED] writes:
> At least the CVS version I downloaded on 9th of May still has the problem:
>
> wget -c http://some.random.com/ results in
> "The file is already fully retrieved, nothing to do." and nothing is
> downloaded :-(
Ah, I see. This is a different bug from the one Herold was seeing.
Thanks for the explanation.
Does this patch fix the problem?
2001-05-09 Hrvoje Niksic <[EMAIL PROTECTED]>
* http.c (gethttp): Before concluding that the file is already
fully retrieved, make sure that the file existed and `Range' was
actually requested.
Index: src/http.c
===================================================================
RCS file: /pack/anoncvs/wget/src/http.c,v
retrieving revision 1.58
diff -u -r1.58 http.c
--- src/http.c 2001/05/08 11:47:05 1.58
+++ src/http.c 2001/05/09 18:25:41
@@ -1190,7 +1190,11 @@
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"));