1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-01-05 18:58:02 -05:00

Clear cookies created by authentication test

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2052 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2012-10-12 14:35:56 +00:00
parent aa1898d138
commit a9cdb89332

View File

@ -180,6 +180,8 @@ public abstract class ExchangeSession {
// set private connection pool
DavGatewayHttpClientFacade.createMultiThreadedHttpConnectionManager(httpClient);
boolean isBasicAuthentication = isBasicAuthentication(httpClient, url);
// clear cookies created by authentication test
httpClient.getState().clearCookies();
// The user may have configured an OTP pre-auth username. It is processed
// so early because OTP pre-auth may disappear in the Exchange LAN and this