Loading src/com/owncloud/android/lib/resources/files/UnlockFileOperation.java +1 −5 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); Loading Loading
src/com/owncloud/android/lib/resources/files/UnlockFileOperation.java +1 −5 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); Loading