We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f35c7af commit 77b32f4Copy full SHA for 77b32f4
1 file changed
utils/src/main/java/com/cloud/utils/UriUtils.java
@@ -350,7 +350,11 @@ public static List<String> getMetalinkChecksums(String url) {
350
InputStream is = getMethod.getResponseBodyAsStream();
351
Map<String, List<String>> checksums = getMultipleValuesFromXML(is, new String[] {"hash"});
352
if (checksums.containsKey("hash")) {
353
- return checksums.get("hash");
+ List<String> listChksum = new ArrayList<>();
354
+ for (String chk : checksums.get("hash")) {
355
+ listChksum.add(chk.replaceAll("\n", "").replaceAll(" ", "").trim());
356
+ }
357
+ return listChksum;
358
}
359
360
} catch (IOException e) {
0 commit comments