mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Fixed double upload of files with OAuth + Bearer authorization
This commit is contained in:
parent
11b88e0fcc
commit
66442da081
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue