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

Unverified Commit 9a1c47ae authored by tobiasKaminsky's avatar tobiasKaminsky
Browse files

token in header

parent eaf1679d
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@ import com.owncloud.android.lib.common.operations.RemoteOperationResult;
import com.owncloud.android.lib.common.utils.Log_OC;

import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.NameValuePair;
import org.apache.commons.httpclient.methods.DeleteMethod;


@@ -64,10 +63,7 @@ public class UnlockFileOperation extends RemoteOperation {
            deleteMethod = new DeleteMethod(client.getBaseUri() + LOCK_FILE_URL + localId);
            deleteMethod.addRequestHeader(OCS_API_HEADER, OCS_API_HEADER_VALUE);
            deleteMethod.addRequestHeader("Content-Type", "application/x-www-form-urlencoded");

            NameValuePair[] deleteParams = new NameValuePair[1];
            deleteParams[0] = new NameValuePair("token", token);
            deleteMethod.setQueryString(deleteParams);
            deleteMethod.addRequestHeader("token", token);

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