1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Allow --timestamping and --continue at the same time.

This commit is contained in:
Giuseppe Scrivano 2011-09-07 12:57:55 +02:00
parent eb76fcbe2b
commit 19ef7249b8
3 changed files with 10 additions and 1 deletions

3
NEWS
View File

@ -10,6 +10,9 @@ Please send GNU Wget bug reports to <bug-wget@gnu.org>.
** Now --version and --help work again. ** Now --version and --help work again.
** Fix a build error on solaris 10 sparc. ** 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 * Changes in Wget 1.13.3

View File

@ -1,3 +1,9 @@
2011-09-07 Giuseppe Scrivano <gscrivano@gnu.org>
* http.c (gethttp): Don't inhibit arest request if opt.timestamping is
set.
Reported by <natrio@list.ru>
2011-09-06 Jakob Matthes <jakob.matthes@gmail.com> (tiny change) 2011-09-06 Jakob Matthes <jakob.matthes@gmail.com> (tiny change)
* main.c (print_version): Do not exit prematurely when --help is passed. * main.c (print_version): Do not exit prematurely when --help is passed.

View File

@ -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. */ /* ... but some HTTP/1.0 caches doesn't implement Cache-Control. */
request_set_header (req, "Pragma", "no-cache", rel_none); request_set_header (req, "Pragma", "no-cache", rel_none);
} }
if (hs->restval && !opt.timestamping) if (hs->restval)
request_set_header (req, "Range", request_set_header (req, "Range",
aprintf ("bytes=%s-", aprintf ("bytes=%s-",
number_to_static_string (hs->restval)), number_to_static_string (hs->restval)),