1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-24 08:38:51 -05:00

Fix for authentication issue describe in issue 359.

This commit is contained in:
Matthew Brace 2009-04-02 01:52:00 +00:00
parent f2ee0ae34f
commit 1b5fdb99d9

View File

@ -684,7 +684,10 @@ public class WebDavStore extends Store {
if (needAuth()) {
if (!checkAuth()) {
try {
CookieStore cookies = doAuthentication(this.mUsername, this.mPassword, this.mUrl);
CookieStore cookies = mHttpClient.getCookieStore();
cookies.clear();
mHttpClient.setCookieStore(cookies);
cookies = doAuthentication(this.mUsername, this.mPassword, this.mUrl);
if (cookies != null) {
this.mAuthenticated = true;
this.mLastAuth = System.currentTimeMillis()/1000;