Enable preemptive authentication to avoid double send of files in uploading
authorDavid A. Velasco <dvelasco@solidgear.es>
Thu, 19 Jul 2012 09:34:51 +0000 (11:34 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Thu, 19 Jul 2012 09:34:51 +0000 (11:34 +0200)
AndroidManifest.xml
src/eu/alefzero/webdav/WebdavClient.java

index 7f30c52..dc9338d 100644 (file)
@@ -18,7 +18,7 @@
  -->\r
 <manifest package="eu.alefzero.owncloud"\r
     android:versionCode="1"\r
-    android:versionName="0.1.166B" xmlns:android="http://schemas.android.com/apk/res/android">\r
+    android:versionName="0.1.167B" xmlns:android="http://schemas.android.com/apk/res/android">\r
 \r
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />\r
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />\r
index 44b6e6b..449cfff 100644 (file)
@@ -97,7 +97,7 @@ public class WebdavClient extends HttpClient {
     }\r
 \r
     public void setCredentials(String username, String password) {\r
-        //getParams().setAuthenticationPreemptive(true);\r
+        getParams().setAuthenticationPreemptive(true);\r
         getState().setCredentials(AuthScope.ANY,\r
                 getCredentials(username, password));\r
     }\r