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

Unverified Commit 272f024c authored by tobiasKaminsky's avatar tobiasKaminsky
Browse files

update

parent 9a1c47ae
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -67,16 +67,6 @@ public class UnlockFileOperation extends RemoteOperation {

            int status = client.executeMethod(deleteMethod, SYNC_READ_TIMEOUT, SYNC_CONNECTION_TIMEOUT);

            if (status == HttpStatus.SC_OK) {
                result = new RemoteOperationResult(true, deleteMethod);
            } else {
                result = new RemoteOperationResult(false, deleteMethod);
                client.exhaustResponse(deleteMethod.getResponseBodyAsStream());
            }
            deleteMethod.addRequestHeader("token", token);

            int status = client.executeMethod(deleteMethod, SYNC_READ_TIMEOUT, SYNC_CONNECTION_TIMEOUT);

            result = new RemoteOperationResult(status == HttpStatus.SC_OK, deleteMethod);
            
            client.exhaustResponse(deleteMethod.getResponseBodyAsStream());