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:
committed by
davigonz
parent
ec5c9fc4aa
commit
3829a1ca32
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user