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)
1  2 
src/eu/alefzero/webdav/WebdavClient.java

@@@ -330,15 -330,10 +330,16 @@@ public class WebdavClient extends HttpC
  \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
 +\r
 +    \r
 +    public final Credentials getCredentials() {\r
 +        return mCredentials;\r
 +    }\r
 +\r
  }\r