Skip to content

Commit 2b42bf4

Browse files
committed
Don't mangle with a given RequestBody
1 parent 6847606 commit 2b42bf4

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ open class ApiClient(
7777

7878
protected inline fun <reified T> requestBody(content: T, mediaType: String = JsonMediaType): RequestBody =
7979
when {
80+
content is RequestBody -> content
8081
content is File -> content.asRequestBody(
8182
mediaType.toMediaTypeOrNull()
8283
)

0 commit comments

Comments
 (0)