summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorEric Multanen <eric.w.multanen@intel.com>2018-11-28 01:00:00 -0800
committerEric Multanen <eric.w.multanen@intel.com>2018-11-28 01:38:39 -0800
commit5ff8f49c6b72f03e49961fcb771af2454d8a5321 (patch)
tree57ce4e8883019cae6e640a70e031c9df1be04d41 /common
parent372446b29e9ca614948dc5d95de3b2582ff3491d (diff)
Fix HttpClient change which broke multicloud
The lines added to HttpClient in https://gerrit.onap.org/r/#/c/72771/ broke the usage of HttpClient by the multicloud adapter. The 'content-type' line seems redundant - content type is specified in the HttpClient constructor. The 'Authorization' line (which broke multicloud usage) seems inappropriate here. The Authorization string shouldn't be hard coded into a generic client. There are other methods available for adding the authentication header. Change-Id: I19ac1a382778fe50bc7e98e1e9b9a4d84897b2a6 Issue-ID: SO-1257 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
Diffstat (limited to 'common')
-rw-r--r--common/src/main/java/org/onap/so/client/HttpClient.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/common/src/main/java/org/onap/so/client/HttpClient.java b/common/src/main/java/org/onap/so/client/HttpClient.java
index 9c4b5731fb..b991e79d8c 100644
--- a/common/src/main/java/org/onap/so/client/HttpClient.java
+++ b/common/src/main/java/org/onap/so/client/HttpClient.java
@@ -42,8 +42,6 @@ public class HttpClient extends RestClient {
@Override
protected void initializeHeaderMap(Map<String, String> headerMap) {
- headerMap.put("Authorization", "Basic YnBlbDpwYXNzd29yZDEk");
- headerMap.put("content-type", "application/json");
}
@Override