]> sjero.net Git - wget/commitdiff
[svn] when -c used, mark already fully retrieved file as successfully retrieved.
authorhniksic <devnull@localhost>
Tue, 19 Feb 2002 05:18:43 +0000 (21:18 -0800)
committerhniksic <devnull@localhost>
Tue, 19 Feb 2002 05:18:43 +0000 (21:18 -0800)
Submitted by Ian Abbott in <3C6019F4.30803.FF43E9@localhost>.

src/ChangeLog
src/http.c

index 19eb694c681c4e449523ed97be63e94fb88270e7..dc66f3e8cb4ff307ac2c34cfbd2756c0cfb350c6 100644 (file)
@@ -1,3 +1,8 @@
+2002-02-05  Ian Abbott  <abbotti@mev.co.uk>
+
+       * http.c (gethttp): when -c used, mark already fully retrieved
+       file as successfully retrieved.
+
 2002-02-19  Hrvoje Niksic  <hniksic@arsdigita.com>
 
        * url.c (url_parse): Don't treat '?' as query string separator
index ed2d486b9b41b583f82f9a58a176d90a7e1d7a72..0e5168a19a1282f91c27e9dd3d3b74ec900c0588 100644 (file)
@@ -1224,6 +1224,8 @@ Accept: %s\r\n\
              /* In case the caller inspects. */
              hs->len = contlen;
              hs->res = 0;
+             /* Mark as successfully retrieved. */
+             *dt |= RETROKF;
              FREE_MAYBE (type);
              FREE_MAYBE (all_headers);
              CLOSE_INVALIDATE (sock);  /* would be CLOSE_FINISH, but there