mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Fix for authentication issue describe in issue 359.
This commit is contained in:
parent
f2ee0ae34f
commit
1b5fdb99d9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user