From a9ff5853a986744cb825e38d3e9186a1bb9f10ed Mon Sep 17 00:00:00 2001 From: hniksic Date: Mon, 18 Feb 2002 21:18:43 -0800 Subject: [PATCH] [svn] when -c used, mark already fully retrieved file as successfully retrieved. Submitted by Ian Abbott in <3C6019F4.30803.FF43E9@localhost>. --- src/ChangeLog | 5 +++++ src/http.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 19eb694c..dc66f3e8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-02-05 Ian Abbott + + * http.c (gethttp): when -c used, mark already fully retrieved + file as successfully retrieved. + 2002-02-19 Hrvoje Niksic * url.c (url_parse): Don't treat '?' as query string separator diff --git a/src/http.c b/src/http.c index ed2d486b..0e5168a1 100644 --- a/src/http.c +++ b/src/http.c @@ -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 -- 2.39.2