From 4572ca29e82cad9fc521179bde26715aa46a324c Mon Sep 17 00:00:00 2001 From: "David A. Velasco" Date: Fri, 21 Mar 2014 13:41:19 +0100 Subject: [PATCH] Replace method infering basic authorization for other returning the 'authenticate' header value; let's analyze the header in other class --- .../lib/common/operations/RemoteOperationResult.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/com/owncloud/android/lib/common/operations/RemoteOperationResult.java b/src/com/owncloud/android/lib/common/operations/RemoteOperationResult.java index 1f923d1f..8f57165e 100644 --- a/src/com/owncloud/android/lib/common/operations/RemoteOperationResult.java +++ b/src/com/owncloud/android/lib/common/operations/RemoteOperationResult.java @@ -108,7 +108,7 @@ public class RemoteOperationResult implements Serializable { private String mAuthenticate; private ArrayList mData; - + public RemoteOperationResult(ResultCode code) { mCode = code; mSuccess = (code == ResultCode.OK || code == ResultCode.OK_SSL || code == ResultCode.OK_NO_SSL); @@ -365,9 +365,8 @@ public class RemoteOperationResult implements Serializable { mRedirectedLocation.toLowerCase().contains("wayf"))); } - public boolean isBasicAuthentication() { - return (mAuthenticate != null && - (mAuthenticate.toUpperCase().startsWith("BASIC"))); + public String getAuthenticateHeader() { + return mAuthenticate; } }