Skip to content

Commit

Permalink
Properly check MD5.
Browse files Browse the repository at this point in the history
  • Loading branch information
at88mph committed Apr 10, 2024
1 parent 20a08d7 commit 590073b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,10 @@ void upload(final UploadOutputStreamWrapper outputStreamWrapper, final DataNode

uploadVerifier.verifyByteCount(outputStreamWrapper.getByteCount(),
ct.getHttpTransferDetails().getContentLength());
uploadVerifier.verifyMD5(outputStreamWrapper.getCalculatedMD5(), ct.getHttpTransferDetails().getContentMD5());
if (ct.getHttpTransferDetails().getDigest() != null) {
uploadVerifier.verifyMD5(outputStreamWrapper.getCalculatedMD5(),
ct.getHttpTransferDetails().getDigest().getSchemeSpecificPart());
}

uploadSuccess();
}
Expand Down

0 comments on commit 590073b

Please sign in to comment.