This is an automated email from the ASF dual-hosted git repository. dahn pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push: new 51126a7c105 iteration optimized (#10576) 51126a7c105 is described below commit 51126a7c1054a27d65c1db764a2ecd5e7a8a4edc Author: Ashutosh Kr Singh <ashutoshsi...@kgpian.iitkgp.ac.in> AuthorDate: Fri Jul 11 18:48:43 2025 +0530 iteration optimized (#10576) --- .../cloudstack/direct/download/HttpsDirectTemplateDownloader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/apache/cloudstack/direct/download/HttpsDirectTemplateDownloader.java b/core/src/main/java/org/apache/cloudstack/direct/download/HttpsDirectTemplateDownloader.java index b8a25a11b5c..dd0b068f566 100644 --- a/core/src/main/java/org/apache/cloudstack/direct/download/HttpsDirectTemplateDownloader.java +++ b/core/src/main/java/org/apache/cloudstack/direct/download/HttpsDirectTemplateDownloader.java @@ -98,8 +98,8 @@ public class HttpsDirectTemplateDownloader extends DirectTemplateDownloaderImpl req = new HttpGet(downloadUrl); setFollowRedirects(this.isFollowRedirects()); if (MapUtils.isNotEmpty(headers)) { - for (String headerKey: headers.keySet()) { - req.setHeader(headerKey, headers.get(headerKey)); + for (Map.Entry<String, String> entry : headers.entrySet()) { + req.setHeader(entry.getKey(), entry.getValue()); } } }