Merge branch 'fix-http-empty' of https://github.com/jpirnay/crosspoint-reader into mybuild

This commit is contained in:
jpirnay committed 2026-03-25 18:08:16 +01:00
commit 96aaeec792
2 files changed
+14 -6

No files matched your search

-6
View File
@@ -179,12 +179,6 @@ HttpDownloader::DownloadError HttpDownloader::downloadToFile(const std::string&
return FILE_ERROR;
}
if (contentLength == 0 && downloaded == 0) {
LOG_ERR("HTTP", "Download failed: no data received");
Storage.remove(destPath.c_str());
return HTTP_ERROR;
}
// Verify download size if known
if (contentLength > 0 && downloaded != contentLength) {
LOG_ERR("HTTP", "Size mismatch: got %zu, expected %zu", downloaded, contentLength);