Code Review
/
holmes
/
common.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fix https bug
[holmes/common.git]
/
holmes-actions
/
src
/
main
/
java
/
org
/
onap
/
holmes
/
common
/
utils
/
HttpsUtils.java
diff --git
a/holmes-actions/src/main/java/org/onap/holmes/common/utils/HttpsUtils.java
b/holmes-actions/src/main/java/org/onap/holmes/common/utils/HttpsUtils.java
index
29a1c91
..
48ed0ae
100644
(file)
--- a/
holmes-actions/src/main/java/org/onap/holmes/common/utils/HttpsUtils.java
+++ b/
holmes-actions/src/main/java/org/onap/holmes/common/utils/HttpsUtils.java
@@
-183,15
+183,7
@@
public class HttpsUtils {
try {
httpResponse = httpClient.execute(httpRequest);
} catch (Exception e) {
try {
httpResponse = httpClient.execute(httpRequest);
} catch (Exception e) {
- e.printStackTrace();
throw new CorrelationException("Failed to get data from server" ,e);
throw new CorrelationException("Failed to get data from server" ,e);
- } finally {
- if (httpRequest != null) {
- httpRequest.releaseConnection();
- }
- if (httpClient != null) {
- httpClient.close();
- }
}
return httpResponse;
}
}
return httpResponse;
}