Enable preemptive authentication to avoid double send of files in uploading
[pub/Android/ownCloud.git] / src / eu / alefzero / webdav / WebdavClient.java
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