Skip to content

Commit

Permalink
ASA 8392 (#155) (#156)
Browse files Browse the repository at this point in the history
* ASA 8392 (#155)
  • Loading branch information
vishalhcl-5960 authored Jun 14, 2024
1 parent f8119a6 commit af034e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/hcl/appscan/sdk/utils/ServiceUtil.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* © Copyright IBM Corporation 2016.
* © Copyright HCL Technologies Ltd. 2017, 2020, 2023.
* © Copyright HCL Technologies Ltd. 2017, 2020, 2024.
* LICENSE: Apache License, Version 2.0 https://www.apache.org/licenses/LICENSE-2.0
*/

Expand Down Expand Up @@ -142,9 +142,9 @@ public static boolean isValidUrl(String url, IAuthenticationProvider provider, P
JSONObject body = new JSONObject();
body.put(URL, url);

HttpClient client = new HttpClient(proxy);
Map<String,String> requestHeaders= provider.getAuthorizationHeader(false);
requestHeaders.put("Content-Type", "application/json");
HttpClient client = new HttpClient(proxy, provider.getacceptInvalidCerts());
Map<String,String> requestHeaders= provider.getAuthorizationHeader(false);
requestHeaders.put("Content-Type", "application/json");
HttpResponse response = client.post(request_url, requestHeaders, body.toString());

if (response.isSuccess()) {
Expand Down

0 comments on commit af034e4

Please sign in to comment.