Skip to content

Commit

Permalink
Save one copy call
Browse files Browse the repository at this point in the history
  • Loading branch information
987Nabil committed Sep 12, 2024
1 parent fb97316 commit 2c5866e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private[http] object BodyCodec {
trace: Trace,
): Body = {
val (mediaType, bc @ BinaryCodecWithSchema(_, _)) = codec.chooseFirstOrDefault(mediaTypes)
Body.fromChunk(bc.codec(config).encode(value)).contentType(mediaType)
Body.fromChunk(bc.codec(config).encode(value), mediaType)
}

type Element = A
Expand Down

0 comments on commit 2c5866e

Please sign in to comment.