From 74ca4d11ab8a6388533088b2646166c3bb745eb4 Mon Sep 17 00:00:00 2001 From: Carlos Monteiro <42719844+ca-monteiro@users.noreply.github.com> Date: Thu, 24 Aug 2023 11:48:16 +0100 Subject: [PATCH] Allow for anycase SHA256 HTTP header (#79) --- src/main/java/io/jenkins/plugins/jfrog/BinaryInstaller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/jenkins/plugins/jfrog/BinaryInstaller.java b/src/main/java/io/jenkins/plugins/jfrog/BinaryInstaller.java index 3c9343d5..b1271ce8 100644 --- a/src/main/java/io/jenkins/plugins/jfrog/BinaryInstaller.java +++ b/src/main/java/io/jenkins/plugins/jfrog/BinaryInstaller.java @@ -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(); } }