aboutsummaryrefslogtreecommitdiffstats
path: root/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'profiles')
-rw-r--r--profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java3
1 files changed, 2 insertions, 1 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 5b85ca9a..aa37e839 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
@@ -242,7 +242,8 @@ public class OnapHttpConnection {
}
for (Entry<String, String> header : this.mapCommonHeaders.entrySet()) {
- input.getReqHeaders().put(header.getKey(), header.getValue());
+ if (!input.getReqHeaders().containsKey(header.getKey()))
+ input.getReqHeaders().put(header.getKey(), header.getValue());
}
}