mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
parent
d4f9472e48
commit
717667126c
@ -189,8 +189,8 @@
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents.client5</groupId>
|
||||
<artifactId>httpclient5</artifactId>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.entgra.device.mgt.core</groupId>
|
||||
|
||||
@ -151,10 +151,13 @@
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents.client5</groupId>
|
||||
<artifactId>httpclient5</artifactId>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
|
||||
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore -->
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpcore</artifactId>
|
||||
|
||||
@ -42,7 +42,6 @@ import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.client.methods.HttpRequestBase;
|
||||
import org.apache.http.conn.ssl.NoopHostnameVerifier;
|
||||
import org.apache.http.conn.ssl.X509HostnameVerifier;
|
||||
import org.apache.http.cookie.SM;
|
||||
import org.apache.http.entity.BufferedHttpEntity;
|
||||
import org.apache.http.entity.ContentType;
|
||||
@ -367,7 +366,7 @@ public class HandlerUtil {
|
||||
boolean isIgnoreHostnameVerification = Boolean.parseBoolean(System.
|
||||
getProperty("org.wso2.ignoreHostnameVerification"));
|
||||
if (isIgnoreHostnameVerification) {
|
||||
return HttpClients.custom().setHostnameVerifier((X509HostnameVerifier) NoopHostnameVerifier.INSTANCE).build();
|
||||
return HttpClients.custom().setSSLHostnameVerifier(NoopHostnameVerifier.INSTANCE).build();
|
||||
} else {
|
||||
return HttpClients.createDefault();
|
||||
}
|
||||
|
||||
6
pom.xml
6
pom.xml
@ -1309,8 +1309,8 @@
|
||||
<version>${github.openfeign.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents.client5</groupId>
|
||||
<artifactId>httpclient5</artifactId>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
<version>${apache.http.client.version}</version>
|
||||
</dependency>
|
||||
<!-- Removing neethi configs from webapp-->
|
||||
@ -2054,7 +2054,7 @@
|
||||
<github.openfeign.version>11.0</github.openfeign.version>
|
||||
<jsr311.version>1.1.1</jsr311.version>
|
||||
<commons.logging.version>1.2</commons.logging.version>
|
||||
<apache.http.client.version>5.2.1</apache.http.client.version>
|
||||
<apache.http.client.version>4.5.6</apache.http.client.version>
|
||||
<!-- apache http components core -->
|
||||
<apache.http.core.version>4.4.13</apache.http.core.version>
|
||||
<apache.http.mime.version>4.5.10</apache.http.mime.version>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user