浏览代码

Enable preemptive authentication to avoid double send of files in uploading

David A. Velasco 13 年之前
父节点
当前提交
611fe1e4b5
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      AndroidManifest.xml
  2. 1 1
      src/eu/alefzero/webdav/WebdavClient.java

+ 1 - 1
AndroidManifest.xml

@@ -18,7 +18,7 @@
  -->
 <manifest package="eu.alefzero.owncloud"
     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.USE_CREDENTIALS" />

+ 1 - 1
src/eu/alefzero/webdav/WebdavClient.java

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