Skip to content

Commit

Permalink
Accept the "application/vnd.docker.multiplexed-stream" response header
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed May 7, 2023
1 parent 2e9992d commit 3ca44da
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ inline fun ResponseBody?.consumeFrames(mediaType: String?, expectMultiplexedResp
return emptyFlow()
}
when (mediaType) {
// TODO since api v1.42 we should be able to use the media-type instead of the 'expectMultiplexedResponse' flag
// see https://docs.docker.com/engine/api/version-history/#v142-api-changes
"application/vnd.docker.multiplexed-stream",
"application/vnd.docker.raw-stream" -> {
val reader = FrameReader(source(), expectMultiplexedResponse)
val events = flow {
Expand Down

0 comments on commit 3ca44da

Please sign in to comment.