Skip to content

Commit 3fa8fb4

Browse files
gaulclaude
andcommitted
Use InputStream.readAllBytes for DeleteObjects body
Fixes modernizer violation introduced in e18583c. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e18583c commit 3fa8fb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/gaul/s3proxy/S3ProxyHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ private void handleMultiBlobRemove(HttpServletRequest request,
17011701
if (expected.bits() != MD5.bits()) {
17021702
throw new S3Exception(S3ErrorCode.INVALID_DIGEST);
17031703
}
1704-
byte[] body = ByteStreams.toByteArray(is);
1704+
byte[] body = is.readAllBytes();
17051705
HashCode actual = MD5.hashBytes(body);
17061706
if (!expected.equals(actual)) {
17071707
throw new S3Exception(S3ErrorCode.BAD_DIGEST);

0 commit comments

Comments
 (0)