diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-06-19 12:35:58 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-06-19 12:36:31 -0500 |
commit | 08a868676801f78f41a62b8061deb46c89ac7255 (patch) | |
tree | 7cd0cf0e5454601578fbfbe19e7af82eeba2b3e4 /cadi/client | |
parent | 4e6f7bc234a18194dd4370ad8e3c36aba9df2355 (diff) |
Fix HttpClient/Filter
Issue-ID: AAF-364
Change-Id: Ic21a769226cf309571d96a0f75b583d4f75c7887
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'cadi/client')
-rw-r--r-- | cadi/client/src/main/java/org/onap/aaf/cadi/http/HClient.java | 15 |
1 files changed, 10 insertions, 5 deletions
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<HttpURLConnection> { } 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); |