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

Unverified Commit 36eef8b9 authored by Andy Scherzinger's avatar Andy Scherzinger
Browse files

EMPTY_REQUEST has been marked internal, so init it yourself

parent 599cc2a1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -32,12 +32,13 @@ import com.nextcloud.operations.PutMethod
import com.owncloud.android.lib.common.operations.RemoteOperation
import com.owncloud.android.lib.common.operations.RemoteOperationResult
import okhttp3.RequestBody
import okhttp3.internal.EMPTY_REQUEST
import okhttp3.RequestBody.Companion.toRequestBody
import okhttp3.internal.EMPTY_BYTE_ARRAY
import org.apache.commons.httpclient.HttpStatus

class PutTagRemoteOperation(val id: String, val fileId: Long) : RemoteOperation<Void>() {
    override fun run(client: NextcloudClient): RemoteOperationResult<Void> {
        val empty: RequestBody = EMPTY_REQUEST
        val empty: RequestBody = EMPTY_BYTE_ARRAY.toRequestBody()
        val putMethod =
            PutMethod(
                client.baseUri.toString() + TAG_URL + fileId + "/" + id,