The returned content-length depends on the requested range, therefore when resuming download the reported size is smaller than the actual file size and we should not update it.