iteration optimized (#10576)

This commit is contained in:
Ashutosh Kr Singh 2025-07-11 18:48:43 +05:30 committed by GitHub
parent 8e4fe1c370
commit 51126a7c10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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());
}
}
}