]> sjero.net Git - wget/commit
[svn] Commit various HTTP fixes.
authorhniksic <devnull@localhost>
Sat, 28 Apr 2001 16:22:20 +0000 (09:22 -0700)
committerhniksic <devnull@localhost>
Sat, 28 Apr 2001 16:22:20 +0000 (09:22 -0700)
commitd70101ea4e9c0e3c36ee956aebfda2850c22eb15
tree8a2930575173427aaebc0a1f7d58ff4e7334ef90
parent7b3c3a4cb868607a8664130c890ab46bb81351e0
[svn] Commit various HTTP fixes.
Published in <sxsy9slhu7g.fsf@florida.arsdigita.de>.

* http.c (gethttp): Return RETRUNNEEDED when the retrieval is
unneeded because the file is already there and fully downloaded,
and -c is specified.
(http_loop): Handle RETRUNNEEDED.

* wget.h (uerr_t): New value RETRUNNEEDED.

* http.c (http_loop): Set no_truncate for files that both exist
and are non-empty.
(gethttp): Consider the download finished when restval >= contlen,
not only when restval==contlen.
(gethttp): Handle redirection before giving up due to -c.
(gethttp): Clarify error message which explains that -c will not
truncate the file.
(gethttp): When returning CONTNOTSUPPORTED, don't forget to free
the stuff that needs freeing and release the socket.

* main.c (print_help): Wget booleans accept "off", not "no".
src/ChangeLog
src/http.c
src/main.c
src/wget.h