]> sjero.net Git - wget/commit - src/options.h
[svn] * retr.c (fd_read_body): Report the amount of data *written* as
authorhniksic <devnull@localhost>
Sun, 30 Nov 2003 23:39:04 +0000 (15:39 -0800)
committerhniksic <devnull@localhost>
Sun, 30 Nov 2003 23:39:04 +0000 (15:39 -0800)
commit78706dc5ea8eeb5d5a5eacda806d549a5c81ee89
tree7e22c0d4ef21a78f983d362bc33579d4e5214ec8
parent381457408ad4d78411552a28e7476a5c1f67831e
[svn] * retr.c (fd_read_body): Report the amount of data *written* as
amount_read.  This is not entirely logical, but that's what the
callers expect, and it's not easy to change.

* ftp.c (ftp_loop_internal): Ditto.

* http.c (http_loop): Be smarter about assigning restval; if we're
in the nth pass of a download, simply use the information we have
about how much data has been retrieved as restval.

* ftp.c (getftp): Ditto for FTP "REST" command.

* http.c (gethttp): When the server doesn't respect range, skip
the first RESTVAL bytes of the read body.  Never truncate the
output file.

* retr.c (fd_read_body): Support skipping initial STARTPOS octets.
TODO
src/ChangeLog
src/ftp-ls.c
src/ftp.c
src/ftp.h
src/http.c
src/init.c
src/main.c
src/options.h
src/retr.c
src/retr.h