Skip to content

Commit a877a14

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/auth/streamingV4/trailingChecksumTransform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class TrailingChecksumTransform extends Transform {
7777
});
7878
// if bigger, the chunk would be over 5 GB
7979
// returning early to avoid a DoS by memory exhaustion
80-
return callback(errors.InvalidArgument);
80+
return callback(errors.EntityTooLarge);
8181
}
8282
if (lineBreakIndex === -1) {
8383
// no delimiter, we'll keep the chunk for later

0 commit comments

Comments
 (0)