Skip to content

Commit 3ca44da

Browse files
committed
Accept the "application/vnd.docker.multiplexed-stream" response header
This is available since api v1.42, see https://docs.docker.com/engine/api/version-history/#v142-api-changes
1 parent 2e9992d commit 3ca44da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ inline fun ResponseBody?.consumeFrames(mediaType: String?, expectMultiplexedResp
6262
return emptyFlow()
6363
}
6464
when (mediaType) {
65+
// TODO since api v1.42 we should be able to use the media-type instead of the 'expectMultiplexedResponse' flag
66+
// see https://docs.docker.com/engine/api/version-history/#v142-api-changes
67+
"application/vnd.docker.multiplexed-stream",
6568
"application/vnd.docker.raw-stream" -> {
6669
val reader = FrameReader(source(), expectMultiplexedResponse)
6770
val events = flow {

0 commit comments

Comments
 (0)