\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