From 19ef7249b8679e7a88067dca3db37e947408e15f Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 7 Sep 2011 12:57:55 +0200 Subject: [PATCH] Allow --timestamping and --continue at the same time. --- NEWS | 3 +++ src/ChangeLog | 6 ++++++ src/http.c | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index a4f208e3..734e366b 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,9 @@ Please send GNU Wget bug reports to . ** Now --version and --help work again. ** Fix a build error on solaris 10 sparc. + +** If --timestamping and --continue can be used at the same time. + * Changes in Wget 1.13.3 diff --git a/src/ChangeLog b/src/ChangeLog index 4469d1df..4cb3267c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2011-09-07 Giuseppe Scrivano + + * http.c (gethttp): Don't inhibit arest request if opt.timestamping is + set. + Reported by + 2011-09-06 Jakob Matthes (tiny change) * main.c (print_version): Do not exit prematurely when --help is passed. diff --git a/src/http.c b/src/http.c index fc88118f..748b4e81 100644 --- a/src/http.c +++ b/src/http.c @@ -1626,7 +1626,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy, /* ... but some HTTP/1.0 caches doesn't implement Cache-Control. */ request_set_header (req, "Pragma", "no-cache", rel_none); } - if (hs->restval && !opt.timestamping) + if (hs->restval) request_set_header (req, "Range", aprintf ("bytes=%s-", number_to_static_string (hs->restval)), -- 2.39.2