From 08a868676801f78f41a62b8061deb46c89ac7255 Mon Sep 17 00:00:00 2001 From: Instrumental Date: Tue, 19 Jun 2018 12:35:58 -0500 Subject: Fix HttpClient/Filter Issue-ID: AAF-364 Change-Id: Ic21a769226cf309571d96a0f75b583d4f75c7887 Signed-off-by: Instrumental --- .../src/main/java/org/onap/aaf/cadi/http/HClient.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'cadi/client/src/main/java') diff --git a/cadi/client/src/main/java/org/onap/aaf/cadi/http/HClient.java b/cadi/client/src/main/java/org/onap/aaf/cadi/http/HClient.java index 456184c3..df8cacf4 100644 --- a/cadi/client/src/main/java/org/onap/aaf/cadi/http/HClient.java +++ b/cadi/client/src/main/java/org/onap/aaf/cadi/http/HClient.java @@ -122,11 +122,16 @@ public class HClient implements EClient { } pi.append(pathinfo); } - pathinfo=null; - query=null; - fragment=null; - //huc = (HttpURLConnection) url.openConnection(); - huc = getConnection(uri, pi); + URI sendURI = new URI( + uri.getScheme(), + uri.getUserInfo(), + uri.getHost(), + uri.getPort(), + pi==null?uri.getPath():pi.toString(), + query==null?uri.getQuery():query, + fragment==null?uri.getFragment():fragment + ); + huc = getConnection(sendURI, pi); huc.setRequestMethod(meth); if(ss!=null) { ss.setSecurity(huc); -- cgit 1.2.3-korg