Enable preemptive authentication to avoid double send of files in uploading

This commit is contained in:
David A. Velasco 2012-07-19 11:34:51 +02:00
parent f8e0f7a582
commit 611fe1e4b5
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@
--> -->
<manifest package="eu.alefzero.owncloud" <manifest package="eu.alefzero.owncloud"
android:versionCode="1" android:versionCode="1"
android:versionName="0.1.166B" xmlns:android="http://schemas.android.com/apk/res/android"> android:versionName="0.1.167B" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" /> <uses-permission android:name="android.permission.USE_CREDENTIALS" />

View file

@ -97,7 +97,7 @@ public class WebdavClient extends HttpClient {
} }
public void setCredentials(String username, String password) { public void setCredentials(String username, String password) {
//getParams().setAuthenticationPreemptive(true); getParams().setAuthenticationPreemptive(true);
getState().setCredentials(AuthScope.ANY, getState().setCredentials(AuthScope.ANY,
getCredentials(username, password)); getCredentials(username, password));
} }