mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-08 14:42:02 +00:00
When pack is going to be downloaded an option for curl called resume is activated no matter what, however although major http server support 'Range' command that enables this functionality, not all complies with this, when swupd client tries to re-download a partial file from one of the server that does not support 'Range' it will just throw an error and stop to work until partial download is deleted by hand. This patch address that issue by checking first whether server supports 'Range' command and if not then disable 'resume' of packs. Signed-off-by: Jaime A. Garcia <jaime.garcia.naranjo@intel.com>