Skip to content

Commit

Permalink
Allow for anycase SHA256 HTTP header (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
ca-monteiro authored Aug 24, 2023
1 parent cb3a59a commit 74ca4d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private static boolean shouldDownloadTool(File toolLocation, String artifactoryS
private static String getArtifactSha256(ArtifactoryManager manager, String cliUrlSuffix) throws IOException {
Header[] headers = manager.downloadHeaders(cliUrlSuffix);
for (Header header : headers) {
if (header.getName().equals(SHA256_HEADER_NAME)) {
if (header.getName().equalsIgnoreCase(SHA256_HEADER_NAME)) {
return header.getValue();
}
}
Expand Down

0 comments on commit 74ca4d1

Please sign in to comment.