summaryrefslogtreecommitdiffstats
path: root/profiles/http
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/http')
-rw-r--r--profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
index 266ab855..31786245 100644
--- a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
+++ b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
@@ -240,16 +240,16 @@ public class OnapHttpConnection {
input.getReqHeaders().put("Accept", OnapCommandHttpConstants.APPLICATION_JSON);
}
- for (String headerName : this.mapCommonHeaders.keySet()) {
- input.getReqHeaders().put(headerName, this.mapCommonHeaders.get(headerName));
+ for (Entry<String, String> header : this.mapCommonHeaders.entrySet()) {
+ input.getReqHeaders().put(header.getKey(), header.getValue());
}
}
private void addCommonCookies(CookieStore cookieStore) {
- for (String headerName : this.mapCommonHeaders.keySet()) {
- Cookie cookie = new BasicClientCookie(headerName, this.mapCommonHeaders.get(headerName));
- cookieStore.addCookie(cookie);
- }
+ for (Entry<String, String> header : this.mapCommonHeaders.entrySet()) {
+ Cookie cookie = new BasicClientCookie(header.getKey(), header.getValue());
+ cookieStore.addCookie(cookie);
+ }
}
private void updateResultFromCookies(HttpResult result, List<Cookie> cookies) {