xbps/lib/fetch
Juan RP 791e683e01 fetch: handle GET with offset == length.
While xbps_fetch_file() creates the .part file and for whatever reason
it did not finish properly to rename the file, it could request the server
to restart the download with offset set to file size, resulting in HTTP 416
return code.

Handle this case by checking if the server returns 416 and then checking
if the returned file size matches the requested offset and just rename
the file.

Thanks to @beefcurtains for the test case.
2015-06-28 04:28:55 +02:00
..
common.c libfetch: misc cleanups due to nbcompat removal. 2014-12-28 03:34:36 +01:00
common.h fetch: hardcode HTTPS port and fallback to /etc/services for other unknown ports. 2014-08-25 16:07:47 +02:00
errlist.sh Implemented support for working with remote repositories. 2009-10-27 01:46:00 +01:00
fetch.c libfetch: misc cleanups due to nbcompat removal. 2014-12-28 03:34:36 +01:00
fetch.h Move fetch.h to lib/fetch. 2013-06-19 11:03:03 +02:00
file.c libfetch: misc cleanups due to nbcompat removal. 2014-12-28 03:34:36 +01:00
ftp.c libfetch: misc cleanups due to nbcompat removal. 2014-12-28 03:34:36 +01:00
ftp.errors Implemented support for working with remote repositories. 2009-10-27 01:46:00 +01:00
http.c fetch: handle GET with offset == length. 2015-06-28 04:28:55 +02:00
http.errors Implemented support for working with remote repositories. 2009-10-27 01:46:00 +01:00