1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-15 10:22:53 +00:00

Start working on login usecase

This commit is contained in:
Abel García de Prada
2020-02-03 15:28:49 +01:00
committed by davigonz
parent ec5c9fc4aa
commit 3829a1ca32
2 changed files with 6 additions and 6 deletions
@@ -66,7 +66,7 @@ public class RemoteOperationResult<T>
private Exception mException = null;
private ResultCode mCode = ResultCode.UNKNOWN_ERROR;
private String mRedirectedLocation;
private ArrayList<String> mAuthenticate = new ArrayList<>();
private String mAuthenticate;
private String mLastPermanentLocation = null;
private T mData = null;
@@ -253,7 +253,7 @@ public class RemoteOperationResult<T>
continue;
}
if ("www-authenticate".equals(header.getKey().toLowerCase())) {
mAuthenticate.add(header.getValue().get(0).toLowerCase());
mAuthenticate = header.getValue().get(0).toLowerCase();
}
}
}
@@ -494,7 +494,7 @@ public class RemoteOperationResult<T>
return (mRedirectedLocation != null && !(mRedirectedLocation.toLowerCase().startsWith("https://")));
}
public ArrayList<String> getAuthenticateHeaders() {
public String getAuthenticateHeaders() {
return mAuthenticate;
}