From 5ff8f49c6b72f03e49961fcb771af2454d8a5321 Mon Sep 17 00:00:00 2001 From: Eric Multanen Date: Wed, 28 Nov 2018 01:00:00 -0800 Subject: 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 --- common/src/main/java/org/onap/so/client/HttpClient.java | 2 -- 1 file changed, 2 deletions(-) (limited to 'common/src/main/java/org/onap') 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 headerMap) { - headerMap.put("Authorization", "Basic YnBlbDpwYXNzd29yZDEk"); - headerMap.put("content-type", "application/json"); } @Override -- cgit 1.2.3-korg