Skip to content

Commit

Permalink
Add missing method to ArrayBody (#2585)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo authored Jan 6, 2024
1 parent 4d30f47 commit f4b2b3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zio-http/src/main/scala/zio/http/Body.scala
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ object Body {

override def contentType(newMediaType: MediaType, newBoundary: Boundary): Body =
copy(mediaType = Some(newMediaType), boundary = boundary.orElse(Some(newBoundary)))

override def knownContentLength: Option[Long] = Some(data.length.toLong)
}

private[zio] final case class FileBody(
Expand Down

0 comments on commit f4b2b3f

Please sign in to comment.