Merge branch 'develop' into add_cookie_based_session_support
[pub/Android/ownCloud.git] / src / com / owncloud / android / operations / DetectAuthenticationMethodOperation.java
index b817e72..e8c0fd1 100644 (file)
@@ -94,7 +94,7 @@ public class DetectAuthenticationMethodOperation extends RemoteOperation {
         
         RemoteOperation operation = new ExistenceCheckRemoteOperation("", mContext, false);
         client.setWebdavUri(Uri.parse(mWebDavUrl));
-        client.setBasicCredentials("", "");
+        client.clearCredentials();
         client.setFollowRedirects(false);
         
         // try to access the root folder, following redirections but not SAML SSO redirections