Fix for Exchange 2013 support

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2103 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2013-05-11 16:35:12 +00:00
parent 225c4424eb
commit d7a4365c3f
1 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ import org.apache.commons.codec.binary.Base64;
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.ByteArrayRequestEntity;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.methods.HeadMethod;
import org.apache.commons.httpclient.methods.PostMethod;
import org.apache.commons.httpclient.params.HttpClientParams;
@ -162,7 +163,7 @@ public class EwsExchangeSession extends ExchangeSession {
* @throws IOException on error
*/
protected void checkEndPointUrl(String endPointUrl) throws IOException {
HttpMethod getMethod = new GetMethod(endPointUrl);
HttpMethod getMethod = new HeadMethod(endPointUrl);
getMethod.setFollowRedirects(false);
try {
int status = DavGatewayHttpClientFacade.executeNoRedirect(httpClient, getMethod);