Skip to content

Commit ba0bf3a

Browse files
fredmnlWilliam
andauthored
Update lib/auth/streamingV4/trailingChecksumTransform.js
Co-authored-by: William <91462779+williamlardier@users.noreply.github.com>
1 parent d04e248 commit ba0bf3a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/auth/streamingV4/trailingChecksumTransform.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ class TrailingChecksumTransform extends Transform {
7272
const bytesToKeep = lineBreakIndex === -1 ? chunk.byteLength : lineBreakIndex;
7373
if (this.chunkSizeBuffer.byteLength + bytesToKeep > 10) {
7474
this.log.error('chunk size field too big', {
75-
chunkSizeBuffer: this.chunkSizeBuffer.toString('hex'),
75+
chunkSizeBuffer: this.chunkSizeBuffer.subarray(0, 11).toString('hex'),
76+
chunkSizeBufferLength: this.chunkSizeBuffer.length,
7677
truncatedChunk: chunk.subarray(0, 10).toString('hex'),
7778
});
7879
// if bigger, the chunk would be over 5 GB

0 commit comments

Comments
 (0)