From e6ff19fb71c82be06b78eb6141982358f85b61c7 Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 23 Dec 2013 19:05:30 +0000 Subject: [PATCH] EWS: Another try for checkEndPointUrl, head on /ews/exchange.asmx and follow redirects to wsdl git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2203 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ews/EwsExchangeSession.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/java/davmail/exchange/ews/EwsExchangeSession.java b/src/java/davmail/exchange/ews/EwsExchangeSession.java index 064162b3..06896e3c 100644 --- a/src/java/davmail/exchange/ews/EwsExchangeSession.java +++ b/src/java/davmail/exchange/ews/EwsExchangeSession.java @@ -164,8 +164,7 @@ public class EwsExchangeSession extends ExchangeSession { */ protected void checkEndPointUrl(String endPointUrl) throws IOException { HttpMethod checkMethod = new HeadMethod(endPointUrl); - checkMethod.setPath("/ews/services.wsdl"); - checkMethod.setFollowRedirects(false); + checkMethod.setFollowRedirects(true); try { int status = DavGatewayHttpClientFacade.executeNoRedirect(httpClient, checkMethod); if (status == HttpStatus.SC_UNAUTHORIZED) {