Fixed health check issue
[portal.git] / ecomp-portal-BE-common / src / test / java / org / onap / portalapp / portal / controller / SharedContextRestClient.java
index a6f0dcd..13dfc18 100644 (file)
@@ -33,7 +33,7 @@
  *
  * ============LICENSE_END============================================
  *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
+ * 
  */
 package org.onap.portalapp.portal.controller;
 
@@ -178,6 +178,7 @@ public class SharedContextRestClient {
                } finally {
                        if (response != null)
                                response.close();
+                       httpClient.close();
                }
                return json;
        }
@@ -292,6 +293,7 @@ public class SharedContextRestClient {
                } finally {
                        if (response != null)
                                response.close();
+                       httpClient.close();
                }
                return responseJson;
        }