Skip to content

Commit 51126a7

Browse files
authored
iteration optimized (#10576)
1 parent 8e4fe1c commit 51126a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/apache/cloudstack/direct/download/HttpsDirectTemplateDownloader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ protected void createUriRequest(String downloadUrl, Map<String, String> headers)
9898
req = new HttpGet(downloadUrl);
9999
setFollowRedirects(this.isFollowRedirects());
100100
if (MapUtils.isNotEmpty(headers)) {
101-
for (String headerKey: headers.keySet()) {
102-
req.setHeader(headerKey, headers.get(headerKey));
101+
for (Map.Entry<String, String> entry : headers.entrySet()) {
102+
req.setHeader(entry.getKey(), entry.getValue());
103103
}
104104
}
105105
}

0 commit comments

Comments
 (0)