Skip to content

Commit

Permalink
Optimise zio.http.Response.fromServerSentEvents (#3238)
Browse files Browse the repository at this point in the history
Co-authored-by: Nabil Abdel-Hafeez <[email protected]>
  • Loading branch information
guizmaii and 987Nabil authored Dec 24, 2024
1 parent 47bb96a commit 267c6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zio-http/shared/src/main/scala/zio/http/Response.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
)
}

Expand Down

0 comments on commit 267c6ce

Please sign in to comment.