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;