Skip to content

Commit

Permalink
Save one copy call (#3137)
Browse files Browse the repository at this point in the history
  • Loading branch information
987Nabil authored Sep 14, 2024
1 parent fb97316 commit 1988b18
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 1988b18

Please sign in to comment.