diff --git a/src/java/davmail/exchange/ExchangeSessionFactory.java b/src/java/davmail/exchange/ExchangeSessionFactory.java index d92d47dd..536fc934 100644 --- a/src/java/davmail/exchange/ExchangeSessionFactory.java +++ b/src/java/davmail/exchange/ExchangeSessionFactory.java @@ -174,7 +174,7 @@ public final class ExchangeSessionFactory { */ public static void checkConfig() throws IOException { String url = Settings.getProperty("davmail.url"); - HttpClient httpClient = DavGatewayHttpClientFacade.getInstance(); + HttpClient httpClient = DavGatewayHttpClientFacade.getInstance(url); GetMethod testMethod = new GetMethod(url); try { // get webMail root url (will not follow redirects)