791e683e01
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. |
||
---|---|---|
.. | ||
common.c | ||
common.h | ||
errlist.sh | ||
fetch.c | ||
fetch.h | ||
file.c | ||
ftp.c | ||
ftp.errors | ||
http.c | ||
http.errors |