소스 검색

Merge remote-tracking branch 'origin/oauth_login' into oauth_login

David A. Velasco 12 년 전
부모
커밋
ac07e35d8a
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/eu/alefzero/webdav/WebdavClient.java

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

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