Merge remote-tracking branch 'origin/oauth_login' into oauth_login
authorDavid A. Velasco <dvelasco@solidgear.es>
Thu, 24 Jan 2013 09:30:18 +0000 (10:30 +0100)
committerDavid A. Velasco <dvelasco@solidgear.es>
Thu, 24 Jan 2013 09:30:18 +0000 (10:30 +0100)
src/eu/alefzero/webdav/WebdavClient.java

index 312b828..a9d2e67 100644 (file)
@@ -330,8 +330,9 @@ public class WebdavClient extends HttpClient {
 \r
     @Override\r
     public int executeMethod(HostConfiguration hostconfig, final HttpMethod method, final HttpState state) throws IOException, HttpException  {\r
-        if (mCredentials instanceof BearerAuthScheme) {\r
+        if (mCredentials instanceof BearerCredentials) {\r
             method.getHostAuthState().setAuthScheme(AuthPolicy.getAuthScheme(BearerAuthScheme.AUTH_POLICY));\r
+            method.getHostAuthState().setAuthAttempted(true);\r
         }\r
         return super.executeMethod(hostconfig, method, state);\r
     }\r