Skip to content

Commit

Permalink
Fix the HEAD request to avoid reading file for checksum digest
Browse files Browse the repository at this point in the history
  • Loading branch information
yma96 committed Jun 25, 2024
1 parent 6631535 commit 1932e65
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,6 @@ public Response doHead( final String packageType, final String type, final Strin

responseHelper.setInfoHeaders( builder, item, sk, path, true, contentType,
httpMetadata );

if(!path.endsWith("/")) {
// Content hashing headers
builder.header(ApplicationHeader.md5.key(), contentDigester.digest(sk, path, new EventMetadata()).getDigests().get(ContentDigest.MD5));
builder.header(ApplicationHeader.sha1.key(), contentDigester.digest(sk, path, new EventMetadata()).getDigests().get(ContentDigest.SHA_1));
}

if ( builderModifier != null )
{
Expand Down

0 comments on commit 1932e65

Please sign in to comment.