Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 131bc055 authored by tobiasKaminsky's avatar tobiasKaminsky
Browse files

support multiple auth headers

parent cab91b1b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ public class RemoteOperationResult implements Serializable {
    private Exception mException = null;
    private ResultCode mCode = ResultCode.UNKNOWN_ERROR;
    private String mRedirectedLocation;
    private String mAuthenticate;
    private ArrayList<String> mAuthenticateHeaders = new ArrayList<>();
    private String mLastPermanentLocation = null;

    private ArrayList<Object> mData;
@@ -190,7 +190,7 @@ public class RemoteOperationResult implements Serializable {
                    continue;
                }
                if ("www-authenticate".equals(current.getName().toLowerCase())) {
                    mAuthenticate = current.getValue();
                    mAuthenticateHeaders.add(current.getValue());
                    continue;
                }
            }
@@ -475,8 +475,8 @@ public class RemoteOperationResult implements Serializable {
        return (mRedirectedLocation != null && !(mRedirectedLocation.toLowerCase().startsWith("https://")));
    }

    public String getAuthenticateHeader() {
        return mAuthenticate;
    public ArrayList<String> getAuthenticateHeaders() {
        return mAuthenticateHeaders;
    }

    public String getLastPermanentLocation() {