mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
iteration optimized (#10576)
This commit is contained in:
parent
8e4fe1c370
commit
51126a7c10
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user