Skip to content

Commit 681eded

Browse files
committed
Make the empty RequestBody explicit
1 parent 1f7d299 commit 681eded

File tree

1 file changed

+2
-1
lines changed
  • api-client/src/main/kotlin/de/gesellix/docker/remote/api/client

1 file changed

+2
-1
lines changed

api-client/src/main/kotlin/de/gesellix/docker/remote/api/client/ContainerApi.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import kotlinx.coroutines.cancel
4747
import kotlinx.coroutines.launch
4848
import kotlinx.coroutines.runBlocking
4949
import kotlinx.coroutines.withTimeout
50+
import okhttp3.RequestBody
5051
import okio.Source
5152
import okio.source
5253
import java.io.InputStream
@@ -275,7 +276,7 @@ class ContainerApi(dockerClientConfig: DockerClientConfig = defaultClientConfig,
275276
stdout: Boolean?,
276277
stderr: Boolean?
277278
): RequestConfig {
278-
val localVariableBody = null
279+
val localVariableBody = RequestBody.EMPTY
279280
val localVariableQuery: MultiValueMap = mutableMapOf<String, List<String>>()
280281
.apply {
281282
if (detachKeys != null) {

0 commit comments

Comments
 (0)