Girish Ramakrishnan
2025-02-13 15:17:48 +01:00
parent bd5ecf358a
commit 59721a3f1a

View File

@@ -199,10 +199,11 @@ class S3MultipartDownloadStream extends Readable {
if (error) return this._handleError(error);
const contentLength = parseInt(data.ContentLength, 10); // should be same as length
const body = await data.Body.transformToString();
if (contentLength > 0) {
this._readSize += contentLength;
this.push(data.Body);
this.push(body);
} else {
this._done();
}