Fix for authentication issue describe in issue 359.
This commit is contained in:
parent
f2ee0ae34f
commit
1b5fdb99d9
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue