diff --git a/zio-http/shared/src/main/scala/zio/http/Response.scala b/zio-http/shared/src/main/scala/zio/http/Response.scala index 49825bc06..5793bba2a 100644 --- a/zio-http/shared/src/main/scala/zio/http/Response.scala +++ b/zio-http/shared/src/main/scala/zio/http/Response.scala @@ -213,7 +213,7 @@ object Response { Response( Status.Ok, contentTypeEventStream, - Body.fromCharSequenceStreamChunked(data.map(codec.encode).map(_.asString)), + Body.fromCharSequenceStreamChunked(data.map(codec.encode(_).asString)), ) }