Skip to content

Commit

Permalink
Update Body.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
asr2003 authored Sep 10, 2024
1 parent d7131d9 commit e7e4330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zio-http/shared/src/main/scala/zio/http/Body.scala
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ object Body {
form: Form,
)(implicit trace: Trace): UIO[Body] =
form.multipartBytesUUID.map { case (boundary, bytes) =>
val validBoundary = boundary.replaceAll("[^a-zA-Z0-9'()+_,-./:=?]", "-")
val validBoundary = Boundary(boundary.toString.replaceAll("[^a-zA-Z0-9'()+_,-./:=?]", "-"))
StreamBody(
bytes,
knownContentLength = None,
Expand Down

0 comments on commit e7e4330

Please sign in to comment.