1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Replace method infering basic authorization for other returning the 'authenticate' header value; let's analyze the header in other class

This commit is contained in:
David A. Velasco 2014-03-21 13:41:19 +01:00
parent ec2fcc0716
commit 4572ca29e8

View File

@ -365,9 +365,8 @@ public class RemoteOperationResult implements Serializable {
mRedirectedLocation.toLowerCase().contains("wayf"))); mRedirectedLocation.toLowerCase().contains("wayf")));
} }
public boolean isBasicAuthentication() { public String getAuthenticateHeader() {
return (mAuthenticate != null && return mAuthenticate;
(mAuthenticate.toUpperCase().startsWith("BASIC")));
} }
} }